packaged the atd daemon
[openwrt/svn-archive/archive.git] / utils / at / files / atd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2008 OpenWrt.org
3 START=50
4
5 start() {
6 [ -d /var/spool/cron/atjobs ] || mkdir -p /var/spool/cron/atjobs
7 [ -d /var/spool/cron/atspool ] || mkdir -p /var/spool/cron/atspool
8 [ -f /var/spool/cron/atspool ] || > /var/spool/cron/atjobs/.SEQ
9 chown -R nobody:nogroup /var/spool/cron/atjobs /var/spool/cron/atspool
10 atd
11 }
12
13 stop() {
14 killall atd
15 }