summaryrefslogtreecommitdiff
path: root/www/thttpd
diff options
context:
space:
mode:
authorjlam <jlam>2000-08-06 02:51:59 +0000
committerjlam <jlam>2000-08-06 02:51:59 +0000
commitc093cac10e1ec0235bf0bae93046a28bc34a2d06 (patch)
treec05f5e876f5c0746590baf8edd51e70e73e81fdf /www/thttpd
parent5272c80d2ecffdf43e592fb4439736b9b4dbd993 (diff)
downloadpkgsrc-c093cac10e1ec0235bf0bae93046a28bc34a2d06.tar.gz
Make sure that thttpd uses a pidfile when running. Also some minor
nits to make startup script nicer.
Diffstat (limited to 'www/thttpd')
-rw-r--r--www/thttpd/files/thttpd.conf4
-rw-r--r--www/thttpd/files/thttpd.sh11
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)