diff options
author | Jack Mitchell <jmitchell@cbnl.com> | 2014-06-16 17:40:29 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-06-21 10:36:53 +0200 |
commit | 117716e668fee5910df7f06a9b2b57bf0ad5285a (patch) | |
tree | 30ac9a3d358d901b5f674f2be54a6554a182a091 /meta-webserver/recipes-httpd/sthttpd/sthttpd/init | |
parent | a6eaef942529ed9fc511bd86dd00369862297b26 (diff) | |
download | meta-openembedded-contrib-117716e668fee5910df7f06a9b2b57bf0ad5285a.tar.gz |
sthttpd: improve init scripts to use config file
Rather than put hardcoded values into the init scripts,
use a config file. The SRV_DIR is a special value as it
should be used in the conifg file and also passed to make
so it can put the html files in the correct directory.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/sthttpd/sthttpd/init')
-rw-r--r-- | meta-webserver/recipes-httpd/sthttpd/sthttpd/init | 6 |
1 files changed, 3 insertions, 3 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 "." ;; *) |