summaryrefslogtreecommitdiff
path: root/www/apache/files
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-09-14 02:31:04 +0000
committerjlam <jlam@pkgsrc.org>2000-09-14 02:31:04 +0000
commit2bb5b87d825d5ee14d66b47fdc988742b6926395 (patch)
treeeb4650bf146de9c61c9afbc751f855c1ecf6f72a /www/apache/files
parent22e811d5f9f0dd1e0977f4908cc7c4690cc98cb7 (diff)
downloadpkgsrc-2bb5b87d825d5ee14d66b47fdc988742b6926395.tar.gz
When calling "apache.sh restart", instead of calling "apachectl restart",
we call stop, then start. This correctly restarts httpd with SSL support if it was initially started with SSL support.
Diffstat (limited to 'www/apache/files')
-rw-r--r--www/apache/files/apache.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh
index 5ebe04de8cb..668b9532e55 100644
--- a/www/apache/files/apache.sh
+++ b/www/apache/files/apache.sh
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: apache.sh,v 1.5 2000/09/13 20:06:24 jlam Exp $
+# $NetBSD: apache.sh,v 1.6 2000/09/14 02:31:04 jlam Exp $
#
# PROVIDE: apache
# REQUIRE: DAEMON
@@ -27,6 +27,11 @@ start)
${command} ${apache_start}
fi
;;
+restart)
+ ( $0 stop )
+ sleep 1
+ $0 start
+ ;;
*)
if [ -x ${command} ]; then
${command} ${cmd}