aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-09-17 20:33:52 +0800
committerdinoex <dinoex@FreeBSD.org>2010-09-17 20:33:52 +0800
commit53b4d4f1510203e1677c3c98ccec860ed7dd9637 (patch)
tree6ee359cbf31e66a3bbaf780345626ed5e559651b /www
parentca5ab53dd4738f33d417142c2efc81c65d887bb3 (diff)
downloadfreebsd-ports-gnome-53b4d4f1510203e1677c3c98ccec860ed7dd9637.tar.gz
freebsd-ports-gnome-53b4d4f1510203e1677c3c98ccec860ed7dd9637.tar.zst
freebsd-ports-gnome-53b4d4f1510203e1677c3c98ccec860ed7dd9637.zip
- fix reload target
Reported by: Vladimir Galaichuk
Diffstat (limited to 'www')
-rw-r--r--www/apache13-modssl/files/apache.in12
1 files changed, 2 insertions, 10 deletions
diff --git a/www/apache13-modssl/files/apache.in b/www/apache13-modssl/files/apache.in
index 5590ae86dca9..82eaf7e75982 100644
--- a/www/apache13-modssl/files/apache.in
+++ b/www/apache13-modssl/files/apache.in
@@ -35,7 +35,6 @@ restart_precmd="apache_checkconfig"
reload_precmd="apache_checkconfig"
reload_cmd="apache_graceful"
graceful_cmd="apache_graceful"
-gracefulstop_cmd="apache_gracefulstop"
configtest_cmd="apache_checkconfig"
command="%%PREFIX%%/sbin/httpd"
_pidprefix="/var/run/httpd"
@@ -153,14 +152,7 @@ apache_graceful() {
apache_requirepidfile
echo "Performing a graceful restart"
- eval ${command} ${apache_flags} -k graceful
-}
-
-apache_gracefulstop() {
- apache_requirepidfile
-
- echo "Performing a graceful stop"
- eval ${command} ${apache_flags} -k graceful-stop
+ kill -USR1 "`check_pidfile ${pidfile} ${command}`"
}
apache_precmd()
@@ -193,6 +185,6 @@ apache_prestart() {
apache_precmd
}
-extra_commands="reload graceful gracefulstop configtest"
+extra_commands="reload graceful configtest"
run_rc_command "$1"
# eof