packages/utils/at/files/atd.init
nico 736d88a007 packages/atd: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28909 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-09 23:37:56 +00:00

24 lines
468 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2011 OpenWrt.org
START=50
SERVICE_USE_PID=1
start() {
[ -d /var/spool/cron/atjobs ] || {
mkdir -m 0755 -p /var/spool/cron/atjobs
touch /var/spool/cron/atjobs/.SEQ
chown -R nobody:nogroup /var/spool/cron/atjobs
}
[ -d /var/spool/cron/atspool ] || {
mkdir -m 0755 -p /var/spool/cron/atspool
chown -R nobody:nogroup /var/spool/cron/atspool
}
service_start /usr/sbin/atd
}
stop() {
service_stop /usr/sbin/atd
}