mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
46 lines
795 B
Bash
46 lines
795 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/lcr
|
|
#
|
|
# Description : Linux Call Router Script
|
|
#
|
|
# Authors : Arne Fitzenreiter (arne_f@ipfire.org)
|
|
#
|
|
# Version : 01.00
|
|
#
|
|
# Notes :
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
|
|
case "${1}" in
|
|
start)
|
|
boot_mesg "Starting Linux Call Router..."
|
|
nice --10 /usr/sbin/lcr fork >> /var/log/lcr/console.log 2>&1
|
|
evaluate_retval
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping Linux Call Router..."
|
|
killproc /usr/sbin/lcr
|
|
;;
|
|
|
|
restart)
|
|
${0} stop
|
|
sleep 1
|
|
${0} start
|
|
;;
|
|
|
|
status)
|
|
statusproc /usr/sbin/lcr
|
|
;;
|
|
*)
|
|
echo "Usage: ${0} {start|stop|restart|status}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/lcr
|