]> git.pld-linux.org Git - packages/apache.git/blob - httpd.init
8f6174c0d291856f38cdac6cdb632a3a httpd.init
[packages/apache.git] / httpd.init
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)
41         echo -n "Reloading httpd: "
42         killproc httpd -HUP
43         echo
44         ;;
45   *)
46         echo "Usage: $0 {start|stop|restart|reload|status}"
47         exit 1
48 esac
49
50 exit 0
This page took 0.029729 seconds and 4 git commands to generate.