--- anacron.orig 2011-12-04 21:46:04.437923953 -0900 +++ anacron 2011-12-04 21:42:49.954921938 -0900 @@ -9,7 +9,14 @@ } start() { - ebegin "Running anacron" - /usr/sbin/anacron -s >>/var/log/cron.log 2>&1 - eend $? + ebegin "Starting ${RC_SVCNAME}" + start-stop-daemon --start --pidfile ${pid_file} \ + --exec /usr/sbin/anacron -- -s + eend ${?} +} + +stop() { + ebegin "Stopping ${RC_SVCNAME}" + start-stop-daemon --stop --quiet --exec /usr/sbin/anacron + eend ${?} }