]> git.pld-linux.org Git - packages/boa.git/blob - boa.init
- fixed pl translation
[packages/boa.git] / boa.init
1 #!/bin/sh
2 #
3 # Startup script for the Boa Web Server
4 #
5 # chkconfig: 345 85 15
6 # description: Boa is a World Wide Web server.  It is used to serve \
7 # HTML files and CGI.
8 # processname: boa
9 # config: /etc/httpd/boa.conf
10
11 # Source function library.
12 . /etc/rc.d/init.d/functions
13
14 # Check that networking is up.
15 [ "${NETWORKING}" == "no" ] && exit0
16
17 # Try set service nice level
18 if [ -f /etc/sysconfig/services/boa ]; then
19     . /etc/sysconfig/services/boa
20 fi    
21
22 # See how we were called.
23 case "$1" in
24   start)
25         show "Starting boa"
26         daemon boa
27         touch /var/lock/subsys/httpd
28         ;;
29   stop)
30         show "Shutting down boa"
31         killproc boa
32         rm -f /var/lock/subsys/boa
33         ;;
34   status)
35         status boa
36         ;;
37   restart)
38         $0 stop
39         $0 start
40         ;;
41   *)
42         echo "Usage: $0 {start|stop|restart|status}"
43         exit 1
44         ;;
45 esac
46
47 exit 0
This page took 0.030885 seconds and 3 git commands to generate.