mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 19:15:54 +02:00
51 lines
654 B
Bash
51 lines
654 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/
|
|
#
|
|
# Description :
|
|
#
|
|
# Authors :
|
|
#
|
|
# Version : 00.00
|
|
#
|
|
# Notes :
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
|
|
case "${1}" in
|
|
start)
|
|
boot_mesg "Starting..."
|
|
loadproc
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping..."
|
|
killproc
|
|
;;
|
|
|
|
reload)
|
|
boot_mesg "Reloading..."
|
|
reloadproc
|
|
;;
|
|
|
|
restart)
|
|
${0} stop
|
|
sleep 1
|
|
${0} start
|
|
;;
|
|
|
|
status)
|
|
statusproc
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {start|stop|reload|restart|status}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/
|