mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 03:25:54 +02:00
40 lines
650 B
Bash
40 lines
650 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/pound
|
|
#
|
|
# Description : pound reverse-proxy
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
|
|
case "${1}" in
|
|
start)
|
|
boot_mesg "Starting pound reverse-proxy..."
|
|
loadproc /usr/sbin/pound
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping pound reverse-proxy..."
|
|
killproc /usr/sbin/pound
|
|
;;
|
|
|
|
restart)
|
|
${0} stop
|
|
sleep 1
|
|
${0} start
|
|
;;
|
|
|
|
status)
|
|
statusproc /usr/sbin/pound
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {start|stop|restart|status}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/pound
|