* Merged newxml into HEAD
[linux_from_scratch.git] / bootscripts / blfs / init.d / lprng
blob76f35cfa47ec9cf221755bf1d8219efba6d3fed2
1 #!/bin/sh
2 # Begin $rc_base/init.d/lprng
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 case "$1" in
11 start)
12 echo "Starting lpd..."
13 loadproc /usr/sbin/lpd
16 stop)
17 echo "Stopping lpd..."
18 killproc /usr/sbin/lpd
21 reload)
22 echo "Reloading lpd..."
23 reloadproc /usr/sbin/lpd
26 restart)
27 $0 stop
28 sleep 1
29 $0 start
32 status)
33 statusproc /usr/sbin/lpd
37 echo "Usage: $0 {start|stop|reload|restart|status}"
38 exit 1
40 esac
42 # End $rc_base/init.d/lprng