#!/bin/sh
# Control the line printer daemon.

[ -x /usr/sbin/lpd ] || exit 0
echo $0
PATH=/sbin:/usr/sbin:/bin:/usr/bin
case "$1" in
    start)
	lpd
	;;
    stop)
	start-stop-daemon -K -q -x /usr/sbin/lpd
	;;
    *)
	echo "Usage: $0 {start|stop}"
	exit 1
	;;
esac
exit 0
