source: packages/utils/at/files/atd.init @ 10904

Last change on this file since 10904 was 10904, checked in by matteo, 8 years ago

packaged the atd daemon

  • Property svn:executable set to *
File size: 381 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2008 OpenWrt.org
3START=50
4
5start() {
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
13stop() {
14        killall atd
15}
Note: See TracBrowser for help on using the repository browser.