packages/utils/at/files/atd.init
matteo a549e1ccdb packaged the atd daemon
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10904 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-21 20:46:26 +00:00

16 lines
381 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2008 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
}