3 # asterisk This shell script takes care of starting and stopping Asterisk.
6 # chkconfig: 2345 60 60
7 # description: Asterisk is the Linux based PBX
8 # processname: asterisk
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 [ -f /usr/sbin/asterisk ] || exit 0
17 # See how we were called.
21 echo -n "Starting asterisk: "
25 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/asterisk
29 echo -n "Shutting down asterisk: "
33 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/asterisk
45 echo "Usage: asterisk {start|stop|restart|reload|status}"