summaryrefslogtreecommitdiff
path: root/www/apache
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2002-07-07 00:45:18 +0000
committertv <tv@pkgsrc.org>2002-07-07 00:45:18 +0000
commitd84b6cc3f9cf61cab13822fef8dbd22affa1c2e7 (patch)
treec724e96ef073d6855cc91736a0cd59bd3b78c0d9 /www/apache
parentc203c451ba194e48a7957bfd53f727c9787ec555 (diff)
downloadpkgsrc-d84b6cc3f9cf61cab13822fef8dbd22affa1c2e7.tar.gz
Provide the common rc.d directive "reload" as an alias for "apachectl graceful",
which reloads the server without killing transfers in progress.
Diffstat (limited to 'www/apache')
-rw-r--r--www/apache/files/apache.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh
index 6c12754c9be..afe01833999 100644
--- a/www/apache/files/apache.sh
+++ b/www/apache/files/apache.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: apache.sh,v 1.19 2002/07/02 11:57:19 wiz Exp $
+# $NetBSD: apache.sh,v 1.20 2002/07/07 00:45:18 tv Exp $
#
# PROVIDE: apache
# REQUIRE: DAEMON
@@ -19,9 +19,11 @@ rcvar=$name
command="@PREFIX@/sbin/httpd"
ctl_command="@PREFIX@/sbin/apachectl"
required_files="@PKG_SYSCONFDIR@/httpd.conf"
+extra_commands="reload"
start_cmd="apache_doit start"
stop_cmd="apache_doit stop"
restart_cmd="apache_doit restart"
+reload_cmd="apache_doit reload"
# "${apache_start}" is the subcommand sent to apachectl to control how
# httpd is started. It's value may be overridden in:
@@ -43,6 +45,7 @@ apache_doit ()
{
case $1 in
start) action=${apache_start} ;;
+ reload) action=graceful ;;
*) action=$1 ;;
esac
${ctl_command} ${action}