blob: 3be9b7914365609ed26805796626d3e24ee41fe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
#
# /etc/rc.d/rc.apache2
#
# Start/stop/restart the Apache web server.
#
# To make Apache start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.httpd2
#
APACHE_CTL=/usr/sbin/apachectl
case "$1" in
'start')
$APACHE_CTL -k start
;;
'stop')
$APACHE_CTL -k stop
;;
'graceful-stop')
$APACHE_CTL -k graceful
;;
'restart')
$APACHE_CTL -k restart
;;
'graceful-restart')
$APACHE_CTL -k graceful-restart
;;
*)
echo "Usage: $0 {start|stop|graceful-stop|restart|graceful-restart}"
;;
esac
|