]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/pound
Remove unmounting errors after installation.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / pound
1 #!/bin/sh
2
3 . /etc/sysconfig/rc
4 . ${rc_functions}
5
6 PATH=/bin:/usr/bin:/sbin:/usr/sbin
7
8 test -x /usr/sbin/pound || exit 0
9
10 # For configuration of the init script use the file
11 # /etc/sysconfig/pound, do not edit this init script.
12
13 # Set run_pound to 1 to start pound or 0 to disable it.
14 run_pound=0
15
16 # Specify additional pound options here (see manpage).
17 pound_options=""
18
19 # Specify module to load
20 pound_module="none"
21
22 [ -e /etc/sysconfig/pound ] && . /etc/sysconfig/pound
23
24 DAEMON=/usr/sbin/pound
25
26 case "${1}" in
27 start)
28 boot_mesg "Starting pound ..."
29 if [ $run_pound = 1 ]
30 then
31 # do we have to load a module?
32 [ ${pound_module:-none} != "none" ] && /sbin/modprobe $pound_module
33
34 loadproc $DAEMON $pound_options
35 fi
36 ;;
37
38 stop)
39 boot_mesg "Stopping pound ..."
40 killproc $DAEMON
41 ;;
42
43 restart)
44 ${0} stop
45 sleep 1
46 ${0} start
47 ;;
48
49 status)
50 statusproc $DAEMON
51 ;;
52
53 *)
54 echo "Usage: ${0} {start|stop|restart|status}"
55 exit 1
56 ;;
57 esac
58