2008-04-21 20:46:26 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-03-30 23:09:08 +00:00
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
2011-11-09 23:37:56 +00:00
|
|
|
|
2008-04-21 20:46:26 +00:00
|
|
|
START=50
|
|
|
|
|
2011-11-09 23:37:56 +00:00
|
|
|
SERVICE_USE_PID=1
|
|
|
|
|
2008-04-21 20:46:26 +00:00
|
|
|
start() {
|
2011-11-09 23:37:56 +00:00
|
|
|
[ -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
|
2008-04-21 20:46:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-11-09 23:37:56 +00:00
|
|
|
service_stop /usr/sbin/atd
|
2008-04-21 20:46:26 +00:00
|
|
|
}
|