summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)