]> git.pld-linux.org Git - packages/apache.git/blame - apache.init
- release 2.1,
[packages/apache.git] / apache.init
CommitLineData
8faab90e 1#!/bin/sh
58f9559b
AF
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
8faab90e 20# Try set service nice level
21if [ -f /etc/sysconfig/apache ]; then
22 . /etc/sysconfig/apache
23fi
58f9559b
AF
24# See how we were called.
25case "$1" in
26 start)
27 show Starting httpd
8faab90e 28 daemon httpd
58f9559b
AF
29 touch /var/lock/subsys/httpd
30 ;;
31 stop)
32 show Shutting down httpd
33 killproc httpd
8faab90e 34 rm -f /var/lock/subsys/httpd /var/run/httpd.pid /var/run/httpd.loc*
58f9559b
AF
35 ;;
36 status)
37 status httpd
38 ;;
39 restart)
40 $0 stop
41 $0 start
42 ;;
43 *)
44 echo "Usage: $0 {start|stop|restart|status}"
45 exit 1
46 ;;
47esac
48
49exit 0
This page took 0.064006 seconds and 4 git commands to generate.