diff options
author | tv <tv> | 2002-07-07 00:45:18 +0000 |
---|---|---|
committer | tv <tv> | 2002-07-07 00:45:18 +0000 |
commit | 8316a28483282fd677bb672570b4e5b3b292ea2c (patch) | |
tree | c724e96ef073d6855cc91736a0cd59bd3b78c0d9 /www/apache/files | |
parent | ed89ed2f50d57e31bd8baf1e5986b381f0e2ada6 (diff) | |
download | pkgsrc-8316a28483282fd677bb672570b4e5b3b292ea2c.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/files')
-rw-r--r-- | www/apache/files/apache.sh | 5 |
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} |