1#
2# -- START --
3# init.freebsd.sh,v 1.1 2001/08/21 20:33:15 root Exp
4# This file can be installed in /usr/local/etc/init.d
5#  as lprng.sh
6# Freebsd 3.x and 4.x will run all files in this directory
7#  with the suffix .sh as shell scripts
8#
9# If you do NOT replace the FreeBSD lpd with LRPng's
10# in /usr/sbin/lpd,  then you should edit the /etc/rc.conf
11# and set
12#   lpd_enable=NO
13#
14
15
16# ignore INT signal
17trap '' 2
18
19case "$1" in
20    restart ) 
21			$0 stop
22			sleep 1
23			$0 start
24            ;;
25    stop  )
26		kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1
27            ;;
28    start )
29            echo -n ' printer';
30            ${LPD_PATH}
31            ;;
32esac
33