updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / apache13 / httpd
blob2ef39fa0952d131c9d4ae74ae709d5d4d7ac41c3
1 #!/bin/bash
3 # source application-specific settings
4 [ -f /etc/conf.d/apache13 ] && . /etc/conf.d/apache13
6 # general config
7 . /etc/rc.conf
8 . /etc/rc.d/functions
10 case "$1" in
11 start)
12 stat_busy "Starting HTTP Daemon"
13 if [ "$HTTPD_USE_SSL" = "yes" -o "$HTTPD_USE_SSL" = "YES" ]; then
14 apachectl13 startssl &>/dev/null
15 else
16 apachectl13 start &>/dev/null
18 if [ $? -gt 0 ]; then
19 stat_fail
20 else
21 add_daemon httpd
22 stat_done
25 stop)
26 stat_busy "Stopping HTTP Daemon"
27 apachectl13 stop &>/dev/null
28 if [ $? -gt 0 ]; then
29 stat_fail
30 else
31 rm_daemon httpd
32 stat_done
35 restart)
36 $0 stop
37 sleep 3
38 $0 start
40 reload)
41 if [ -f /var/run/apache13/httpd.pid ]; then
42 status "Reloading HTTP Configuration" kill -HUP `cat /var/run/apache13/httpd.pid`
46 echo "usage: $0 {start|stop|restart|reload}"
47 esac