#
# -- START --
# init.solaris.sh,v 1.1 2001/08/21 20:33:15 root Exp
#
# for Solaris
#  copy this script to /etc/init.d/lprng
#  Then make links as required in /etc/rc2.d to the script
#  cp init.solaris /etc/init.d/lprng
#  (cd /etc/rc2.d; ln -s ../init.d/lprng S99lprng)



# ignore INT signal
trap '' 2

case "$1" in
  start)
        # Start daemons.
        /bin/echo "Starting lpd: \c"
        ${LPD_PATH}
        /bin/echo ""
        ;;
  stop)
        # Stop daemons.
        /bin/echo "Shutting down lpd: \c"
		kill -INT `ps ${PSHOWALL} | awk '/lpd/{ print $1;}'` >/dev/null 2>&1
		/bin/echo " server stopped";
        ;;
  *)
        echo "Usage: $0 {start|stop}"
        exit 1
        ;;
esac


syntax highlighted by Code2HTML, v. 0.9.1