PKGBUILDs/community/anacron/anacrond

28 lines
420 B
Text
Raw Normal View History

2009-10-10 02:15:33 +00:00
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting Anacron Daemon"
/usr/sbin/anacron -s >> /var/log/anacrond.log 2>&1
if [ $? -gt 0 ]; then
stat_fail
else
stat_done
fi
;;
stop)
stat_busy "Stopping Anacron Daemon"
stat_done
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0