# $Id: atd,v 1.2 2004/03/02 13:30:48 homyakov Exp $

check process atd with pidfile /var/run/atd.pid
	group daemons
	group atd
	start program = "/sbin/service atd start"
	stop  program = "/sbin/service atd stop"
	if 5 restarts with 5 cycles then timeout
	depend atd_bin
	depend atd_spool

check file atd_bin with path /usr/sbin/atd
        group atd
	include /etc/monitrc.d/templates/rootbin

check directory atd_spool with path /var/spool/at
	group atd
	if failed permission 2710 then unmonitor
	if failed uid root        then unmonitor
	if failed gid atdaemon    then unmonitor
	
