diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/sthttpd/sthttpd')
-rw-r--r-- | meta-webserver/recipes-httpd/sthttpd/sthttpd/init | 6 | ||||
-rw-r--r-- | meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.conf | 1 | ||||
-rw-r--r-- | meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/meta-webserver/recipes-httpd/sthttpd/sthttpd/init b/meta-webserver/recipes-httpd/sthttpd/sthttpd/init index 70f6797a75..f5f7b01243 100644 --- a/meta-webserver/recipes-httpd/sthttpd/sthttpd/init +++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd/init @@ -18,7 +18,7 @@ test -x "$thttpd" || exit 0 case "$1" in start) echo -n "Starting thttpd" - start-stop-daemon --start --quiet --exec $thttpd -- -d @@SRVDIR + start-stop-daemon --start --quiet --exec $thttpd -- -C @@CONFFILE echo "." ;; stop) @@ -31,7 +31,7 @@ case "$1" in ;; restart) echo -n "Stopping thttpd" - start-stop-daemon --stop --quiet --exec $thttpd -- -d @@SRVDIR + start-stop-daemon --stop --quiet --exec $thttpd -- -C @@CONFFILE echo "." echo -n "Waiting for thttpd to die off" for i in 1 2 3 ; @@ -41,7 +41,7 @@ case "$1" in done echo "" echo -n "Starting thttpd" - start-stop-daemon --start --quiet --exec $thttpd -- -d @@SRVDIR + start-stop-daemon --start --quiet --exec $thttpd -- -C @@CONFFILE echo "." ;; *) diff --git a/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.conf b/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.conf new file mode 100644 index 0000000000..397984f368 --- /dev/null +++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.conf @@ -0,0 +1 @@ +dir=@@SRVDIR diff --git a/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service b/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service index e2dae61fd0..f1095007c4 100644 --- a/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service +++ b/meta-webserver/recipes-httpd/sthttpd/sthttpd/thttpd.service @@ -3,7 +3,7 @@ Description=Tiny/Turbo/Throttling Web Server [Service] Type=forking -ExecStart=/usr/sbin/thttpd -d @@SRVDIR -c cgi-bin/* -i /var/run/thttpd.pid +ExecStart=/usr/sbin/thttpd -C @@CONFFILE -c cgi-bin/* -i /var/run/thttpd.pid PIDFile=/var/run/thttpd.pid [Install] |