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