First version of pound addon

This commit is contained in:
Dirk Wagner
2010-04-06 16:19:48 +02:00
parent 9b16f05642
commit 279966278b
8 changed files with 271 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
#!/bin/sh
. /etc/sysconfig/rc
. ${rc_functions}
PATH=/bin:/usr/bin:/sbin:/usr/sbin
test -x /usr/sbin/pound || exit 0
# For configuration of the init script use the file
# /etc/sysconfig/pound, do not edit this init script.
# Set run_pound to 1 to start pound or 0 to disable it.
run_pound=0
# Specify additional pound options here (see manpage).
pound_options=""
# Specify module to load
pound_module="none"
[ -e /etc/sysconfig/pound ] && . /etc/sysconfig/pound
DAEMON=/usr/sbin/pound
case "${1}" in
start)
boot_mesg "Starting pound ..."
if [ $run_pound = 1 ]
then
# do we have to load a module?
[ ${pound_module:-none} != "none" ] && /sbin/modprobe $pound_module
loadproc $DAEMON $pound_options
fi
;;
stop)
boot_mesg "Stopping pound ..."
killproc $DAEMON
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc $DAEMON
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac