summaryrefslogtreecommitdiff
path: root/www/apache/files
diff options
context:
space:
mode:
authorjlam <jlam>2000-09-14 02:31:04 +0000
committerjlam <jlam>2000-09-14 02:31:04 +0000
commite0f9dd6571986ea7b3bc013fdcbd1c99ca749977 (patch)
treeeb4650bf146de9c61c9afbc751f855c1ecf6f72a /www/apache/files
parent78acceb0ca8f8ba1604c92db4a17179187fc407a (diff)
downloadpkgsrc-e0f9dd6571986ea7b3bc013fdcbd1c99ca749977.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}