]> git.pld-linux.org Git - packages/cronie.git/blame - cronie.upstart
- x32 rebuild
[packages/cronie.git] / cronie.upstart
CommitLineData
bb090c53
JK
1description "Cronie - the cron daemon"
2
37370671
JK
3start on pld.sysinit-done
4stop on pld.shutdown-started
5
bb090c53
JK
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".
8env 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"
17env CROND_MAIL_PROG
18
19respawn
20
21script
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
37end script
This page took 0.111124 seconds and 4 git commands to generate.