summaryrefslogtreecommitdiff
path: root/asterisk/asterisk.rc
blob: ebef84eeb5a670e9612f2aaff7bb1f68a591deed (plain)
    1 #!/bin/sh
    2 #
    3 # /etc/rc.d/asterisk: start/stop/restart asterisk
    4 #
    5 
    6 USER=asterisk
    7 GROUP=asterisk
    8 
    9 case $1 in
   10 start)
   11 	/usr/sbin/asterisk -G $GROUP -U $USER
   12 	;;
   13 stop)
   14 	kill `cat /var/run/asterisk/asterisk.pid`
   15 	;;
   16 restart)
   17 	$0 stop
   18 	sleep 2
   19 	$0 start
   20 	;;
   21 *)
   22 	echo "usage: $0 [start|stop|restart]"
   23 	;;
   24 esac

Generated by cgit