updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / anacron / anacrond
bloba6f1c2bedd5fb66a9d98f9a8a1e8b3bfcbbc8228
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 case "$1" in
7 start)
8 stat_busy "Starting Anacron Daemon"
9 /usr/sbin/anacron -s >> /var/log/anacrond.log 2>&1
10 if [ $? -gt 0 ]; then
11 stat_fail
12 else
13 stat_done
16 stop)
17 stat_busy "Stopping Anacron Daemon"
18 stat_done
20 restart)
21 $0 stop
22 $0 start
25 echo "usage: $0 {start|stop|restart}"
26 esac
27 exit 0