2009-05-04 22:10:13 +02:00
|
|
|
#!/sbin/runscript
|
|
|
|
|
|
|
|
command=/usr/sbin/crond
|
|
|
|
pidfile=/var/run/crond.pid
|
2010-05-06 05:17:55 +02:00
|
|
|
extra_commands="reload"
|
2009-05-04 22:10:13 +02:00
|
|
|
|
|
|
|
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 $?
|
|
|
|
}
|