diff options
author | Steve Price <steve@FreeBSD.org> | 2000-07-13 23:47:54 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 2000-07-13 23:47:54 +0000 |
commit | 143b2d53ee6761b6d621e5ff9de48a05af0636c6 (patch) | |
tree | 755b55601977f901383856e8d448b4f5ec1efe7c /www/thttpd/files | |
parent | Fix invalid (and unnecessary) check for the FreeBSD version. Verified to (diff) |
- On startup, /etc/rc procedure stops when thttpd is installed.
* ${PREFIX}/etc/rc.d/thttpd.sh does not return.
* FIX: invoke thttpd_wrapper as a background process.
- On shutdown, Message "No processes matching ``thttpd_wrapper''" is shown.
* thttpd_wrapper is actually a shell script, not an executable.
* FIX: Record the pid of thttpd_wrapper to /var/run.
* FIX: Use pid-file when killing the wrapper.
Submitted by: Makoto MATSUSHITA <matusita@jp.freebsd.org>
Reviewed by: Anders Nordby <anders@fix.no> (maintainer)
Notes
Notes:
svn path=/head/; revision=30594
Diffstat (limited to 'www/thttpd/files')
-rw-r--r-- | www/thttpd/files/thttpd.sh | 4 |
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 |