
#ident	"@(#)initpkg/init.d:error	25.1"

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