8 APACHECTL
=/usr
/sbin
/apachectl
12 stat_busy
"Starting Apache Web Server"
13 [ ! -d /var
/run
/httpd
] && install -d /var
/run
/httpd
14 if $APACHECTL start
>/dev
/null
; then
15 add_daemon
$daemon_name
24 stat_busy
"Stopping Apache Web Server"
25 if $APACHECTL stop
>/dev
/null
; then
26 rm_daemon
$daemon_name
35 stat_busy
"Reloading Apache Web Server"
36 if $APACHECTL graceful
>/dev
/null
; then
37 add_daemon
$daemon_name
46 stat_busy
"Restarting Apache Web Server"
47 if $APACHECTL restart
>/dev
/null
; then
48 add_daemon
$daemon_name
57 stat_busy
"Checking Apache Web Server status";
58 ck_status
$daemon_name
62 echo "usage: $0 {start|stop|reload|restart|status}"