void-packages/srcpkgs/cronie/files/crond.rc

24 lines
373 B
Plaintext
Raw Normal View History

#!/sbin/runscript
command=/usr/sbin/crond
pidfile=/var/run/crond.pid
2010-05-06 05:17:55 +02:00
extra_commands="reload"
depend()
{
need localmount
after bootmisc
}
2010-05-06 05:17:55 +02:00
reload()
{
if [ ! -f "${pidfile}" ]; then
eerror "crond not running"
return 1
fi
ebegin "Reloading configuration and re-opening log file"
start-stop-daemon --stop --oknodo --signal HUP \
--pidfile "${pidfile}"
eend $?
}