]>
Commit | Line | Data |
---|---|---|
17572244 | 1 | #!/bin/sh |
2 | # | |
3 | # Startup script for the Apache Web Server | |
4 | # | |
5 | # chkconfig: 345 85 15 | |
6 | # description: Apache is a World Wide Web server. It is used to serve \ | |
7 | # HTML files and CGI. | |
8 | # processname: httpd | |
9 | # pidfile: /var/run/httpd.pid | |
10 | # config: /etc/httpd/conf/access.conf | |
11 | # config: /etc/httpd/conf/httpd.conf | |
12 | # config: /etc/httpd/conf/srm.conf | |
13 | ||
14 | ||
15 | # Source function library. | |
16 | . /etc/rc.d/init.d/functions | |
17 | ||
18 | # See how we were called. | |
19 | case "$1" in | |
20 | start) | |
21 | echo -n "Starting httpd: " | |
22 | daemon httpd | |
23 | echo | |
24 | touch /var/lock/subsys/httpd | |
25 | ;; | |
26 | stop) | |
27 | echo -n "Shutting down http: " | |
28 | killproc httpd | |
29 | echo | |
30 | rm -f /var/lock/subsys/httpd | |
31 | rm -f /var/run/httpd.pid | |
32 | ;; | |
33 | status) | |
34 | status httpd | |
35 | ;; | |
36 | restart) | |
37 | $0 stop | |
38 | $0 start | |
39 | ;; | |
40 | reload) | |
6e958cf1 | 41 | msg_reloading httpd |
17572244 | 42 | killproc httpd -HUP |
17572244 | 43 | ;; |
44 | *) | |
4e52b38d | 45 | msg_usage "$0 {start|stop|restart|reload|status}" |
17572244 | 46 | exit 1 |
47 | esac | |
48 | ||
49 | exit 0 |