3 # asterisk This shell script takes care of starting and stopping
4 # asterisk (printer daemon).
6 # chkconfig: 2345 60 60
7 # description: asterisk is the print daemon required for lpr to work properly. \
8 # It is basically a server that arbitrates print jobs to printer(s).
9 # processname: asterisk
10 # config: /etc/printcap
12 # Source function library.
13 . /etc/rc.d/init.d/functions
15 [ -f /usr/sbin/asterisk ] || exit 0
19 # See how we were called.
23 echo -n "Starting asterisk: "
27 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/asterisk
31 echo -n "Shutting down asterisk: "
35 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/asterisk
47 echo "Usage: asterisk {start|stop|restart|reload|status}"