3 # lpd This shell script takes care of starting and stopping
4 # lpd (printer daemon).
6 # chkconfig: 2345 60 60
7 # description: lpd is the print daemon required for lpr to work properly. \
8 # It is basically a server that arbitrates print jobs to printer(s).
10 # config: /etc/printcap
12 # Source function library.
13 . /etc/rc.d/init.d/functions
15 # Source networking configuration.
16 . /etc/sysconfig/network
18 # Check that networking is up.
19 [ "${NETWORKING}" = "no" ] && exit 0
21 [ -f /usr/sbin/lpd ] || exit 0
23 [ -f /etc/printcap ] || exit 0
25 # Try get sysconfig ..
26 if [ -f /etc/sysconfig/lpd ]; then
30 # See how we were called.
35 touch /var/lock/subsys/lpd
38 show Shutting down lpd
40 rm -f /var/lock/subsys/lpd
50 echo "Usage: $0 {start|stop|restart|reload|status}"