]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/initscripts/init.d/lcr
Merge remote-tracking branch 'stevee/axel-log-fix' into axel-fixperms
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / lcr
CommitLineData
6070a03e
AF
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/lcr
4#
5# Description : Linux Call Router Script
6#
7# Authors : Arne Fitzenreiter (arne_f@ipfire.org)
8#
9# Version : 01.00
10#
11# Notes :
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. ${rc_functions}
17
18case "${1}" in
19 start)
20 boot_mesg "Starting Linux Call Router..."
5c313dec 21 nice --10 /usr/sbin/lcr fork >> /var/log/lcr/console.log 2>&1
6070a03e
AF
22 evaluate_retval
23 ;;
24
25 stop)
26 boot_mesg "Stopping Linux Call Router..."
27 killproc /usr/sbin/lcr
28 ;;
29
30 restart)
31 ${0} stop
32 sleep 1
33 ${0} start
34 ;;
35
36 status)
37 statusproc /usr/sbin/lcr
38 ;;
39 *)
40 echo "Usage: ${0} {start|stop|restart|status}"
41 exit 1
42 ;;
43esac
44
45# End $rc_base/init.d/lcr