]> git.pld-linux.org Git - packages/cronie.git/blob - cronie.upstart
- updated to 1.4.9
[packages/cronie.git] / cronie.upstart
1 description "Cronie - the cron daemon"
2
3 start on pld.sysinit-done
4 stop on pld.shutdown-started
5
6 # This option will direct cron to send job output to the system log using syslog(3).
7 # This is useful if your system has no sendmail(8), or if mail is disabled using "off".
8 env CROND_SYSLOG_RESULT="no"
9
10 # This option allows you to specify a shell command string to use
11 # for sending cron mail output instead of sendmail(8).
12 # This command must accept a fully formatted mail message (with headers) on
13 # stdin and send it as a mail message to the recipients specified in the mail
14 # headers.
15 # As a special case, the string "off" will disable sending mail.
16 #env CROND_MAIL_PROG="/usr/lib/sendmail"
17 env CROND_MAIL_PROG
18
19 respawn
20
21 script
22         CROND_ARGS=""
23         # Read the old-style service config
24         [ -f /etc/sysconfig/cron ] && . /etc/sysconfig/cron
25
26         # no 'is_yes' as we don't want the havy init.d/functions here
27         if [ "$CROND_SYSLOG_RESULT" = "yes" ] ; then
28                 CROND_ARGS="$CROND_ARGS -s"
29         fi
30
31         if [ -n "$CROND_MAIL_PROG" ]; then
32                 # XXX: should we handle spaces in $CROND_MAIL_PROG?
33                 CROND_ARGS="$CROND_ARGS -m $CROND_MAIL_PROG"
34         fi
35
36         exec /usr/sbin/crond -n $CROND_ARGS
37 end script
This page took 0.034875 seconds and 3 git commands to generate.