aboutsummaryrefslogtreecommitdiffstats
path: root/www/thttpd/files/thttpd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'www/thttpd/files/thttpd.sh')
-rw-r--r--www/thttpd/files/thttpd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/thttpd/files/thttpd.sh b/www/thttpd/files/thttpd.sh
index 34a848a96082..6129c1145d58 100644
--- a/www/thttpd/files/thttpd.sh
+++ b/www/thttpd/files/thttpd.sh
@@ -7,10 +7,10 @@ fi
case "$1" in
start)
- [ -x ${PREFIX}/sbin/thttpd_wrapper ] && ${PREFIX}/sbin/thttpd_wrapper && echo -n ' thttpd'
+ [ -x ${PREFIX}/sbin/thttpd_wrapper ] && ${PREFIX}/sbin/thttpd_wrapper & && echo -n ' thttpd'
;;
stop)
- killall thttpd_wrapper && killall thttpd && echo -n ' thttpd'
+ kill `cat /var/run/thttpd_wrapper.pid` && killall thttpd && echo -n ' thttpd'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2