#ident	"@(#)initpkg:init.d/errlog	35.1"

case $1 in
'start')
	set `who -r`
	if [ $9 = S ]
	then
		/usr/lib/errdemon
		echo "Error logging started."
	fi
	;;
'stop')
	/etc/errstop
	;;
*)
	echo "usage: /etc/init.d/errlog {start|stop}"
	;;
esac
