diff options
author | jlam <jlam@pkgsrc.org> | 2000-08-06 02:51:59 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-08-06 02:51:59 +0000 |
commit | 9d09a539fc0ec356755feead5802187dfd98d9f5 (patch) | |
tree | c05f5e876f5c0746590baf8edd51e70e73e81fdf /www | |
parent | 63a7e2f8c466c210b0afdd0243a8bdfdf97f4cf3 (diff) | |
download | pkgsrc-9d09a539fc0ec356755feead5802187dfd98d9f5.tar.gz |
Make sure that thttpd uses a pidfile when running. Also some minor
nits to make startup script nicer.
Diffstat (limited to 'www')
-rw-r--r-- | www/thttpd/files/thttpd.conf | 4 | ||||
-rw-r--r-- | www/thttpd/files/thttpd.sh | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/www/thttpd/files/thttpd.conf b/www/thttpd/files/thttpd.conf index 43cbe0e8a7f..cea54994517 100644 --- a/www/thttpd/files/thttpd.conf +++ b/www/thttpd/files/thttpd.conf @@ -1,8 +1,8 @@ -# $NetBSD: thttpd.conf,v 1.3 2000/07/27 12:54:15 jlam Exp $ +# $NetBSD: thttpd.conf,v 1.4 2000/08/06 02:51:59 jlam Exp $ # # thttpd configuration file # dir=@PREFIX@/share/thttpd # root directory of the web site cgipat=*.cgi logfile=/var/log/thttpd.log -#pidfile=/var/run/thttpd.pid +pidfile=/var/run/thttpd.pid diff --git a/www/thttpd/files/thttpd.sh b/www/thttpd/files/thttpd.sh index 21a8b2b36a0..3a8bcd26ba6 100644 --- a/www/thttpd/files/thttpd.sh +++ b/www/thttpd/files/thttpd.sh @@ -1,19 +1,20 @@ #!/bin/sh # -# $NetBSD: thttpd.sh,v 1.1 2000/07/27 12:42:08 jlam Exp $ +# $NetBSD: thttpd.sh,v 1.2 2000/08/06 02:51:59 jlam Exp $ # name="thttpd" +command=@PREFIX@/sbin/${name} pidfile="/var/run/${name}.pid" -command=${1:-start} +cmd=${1:-start} -case ${command} in +case ${cmd} in start) - if [ -x @PREFIX@/sbin/thttpd -a -f /etc/thttpd.conf ] + if [ -x ${command} -a -f /etc/${name}.conf ] then echo "Starting ${name}." - @PREFIX@/sbin/thttpd -i ${pidfile} -C /etc/thttpd.conf + ${command} -i ${pidfile} -C /etc/${name}.conf fi ;; stop) |