packages/utils/at/files/atd.init

16 lines
381 B
Plaintext
Raw Normal View History

#!/bin/sh /etc/rc.common
# Copyright (C) 2011 OpenWrt.org
START=50
start() {
[ -d /var/spool/cron/atjobs ] || mkdir -p /var/spool/cron/atjobs
[ -d /var/spool/cron/atspool ] || mkdir -p /var/spool/cron/atspool
[ -f /var/spool/cron/atspool ] || > /var/spool/cron/atjobs/.SEQ
chown -R nobody:nogroup /var/spool/cron/atjobs /var/spool/cron/atspool
atd
}
stop() {
killall atd
}