diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-07-10 12:22:27 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-07-10 12:22:27 +0000 |
commit | dab9a8dec8f7e8ac97643e8611fe933c5b08070c (patch) | |
tree | 1d74479bc93c44aed43c75decf3eb15773dc1a62 /www/apache | |
parent | 6c6669ec1e2eb9f376471686d16986dfd7fd5f0a (diff) | |
download | pkgsrc-dab9a8dec8f7e8ac97643e8611fe933c5b08070c.tar.gz |
Make the rc.d script(s) react to something else then 'start', i.e.
one can now stop the daemon.
Diffstat (limited to 'www/apache')
-rw-r--r-- | www/apache/files/apache.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh index 65e77c105ef..3d85a5c5c46 100644 --- a/www/apache/files/apache.sh +++ b/www/apache/files/apache.sh @@ -1,10 +1,13 @@ #!/bin/sh # -# $NetBSD: apache.sh,v 1.2 1999/05/11 18:38:31 tron Exp $ +# $NetBSD: apache.sh,v 1.3 2000/07/10 12:22:27 hubertf Exp $ # + +CMD=${1:-start} + if [ -x @PREFIX@/sbin/httpd -a -f @PREFIX@/etc/httpd/httpd.conf ] then - @PREFIX@/sbin/apachectl start >/dev/null + @PREFIX@/sbin/apachectl $CMD >/dev/null echo -n ' apache' fi exit 0 |