]> git.pld-linux.org Git - packages/apache.git/blame - apache.init
correct place
[packages/apache.git] / apache.init
CommitLineData
58f9559b
AF
1#!/bin/bash
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# Source function library.
15. /etc/rc.d/init.d/functions
16
17# Check that networking is up.
18[ "${NETWORKING}" = "no" ] && exit0
19
20# See how we were called.
21case "$1" in
22 start)
23 show Starting httpd
24 daemon +5 httpd
25 touch /var/lock/subsys/httpd
26 ;;
27 stop)
28 show Shutting down httpd
29 killproc httpd
30 rm -f /var/lock/subsys/httpd /var/run/httpd.pid
31 ;;
32 status)
33 status httpd
34 ;;
35 restart)
36 $0 stop
37 $0 start
38 ;;
39 *)
40 echo "Usage: $0 {start|stop|restart|status}"
41 exit 1
42 ;;
43esac
44
45exit 0
46
47
48
This page took 0.078088 seconds and 4 git commands to generate.