summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/apache/files/apache.rc6')
-rw-r--r--net-www/apache/files/apache.rc614
1 files changed, 11 insertions, 3 deletions
diff --git a/net-www/apache/files/apache.rc6 b/net-www/apache/files/apache.rc6
index b6abe52827c9..3798b0504820 100644
--- a/net-www/apache/files/apache.rc6
+++ b/net-www/apache/files/apache.rc6
@@ -1,11 +1,11 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-www/apache/files/apache.rc6,v 1.2 2002/07/27 09:10:32 carpaski Exp $
+# /space/gentoo/cvsroot/gentoo-x86/net-www/apache/files/apache.rc6,v 1.1 2002/04/09 23:51:39 woodchip Exp
depend() {
need net
- use mysql named
+ use mysql
}
start() {
@@ -17,6 +17,14 @@ start() {
stop() {
ebegin "Stopping apache"
- start-stop-daemon --quiet --stop --pidfile /var/run/apache.pid
+ /usr/sbin/apachectl stop
+ start-stop-daemon -o --quiet --stop --pidfile /var/run/apache.pid
eend $?
}
+
+svc_restart() {
+ ebegin "Gracefully restarting apache"
+ /usr/sbin/apachectl graceful
+ eend $?
+}
+