Thu Jul 10 2003 Jens Petersen <petersen@redhat.com> - 2.3-29 - don't require vixie-cron (#21176) [reported by Gerald Teschl] - in init script don't remove /var/lock/subsys/anacron when stopping (#58462) - exit init script with actual exit status (#44600) [reported by Enrico Scholz] Thu Jul 10 2003 Jens Petersen <petersen@redhat.com> - 2.3-28 - add a Content-Type header to mails giving the charset encoding (#77108) Thu Jul 10 2003 Jens Petersen <petersen@redhat.com> - 2.3-27 - in init script do not touch /var/lock/subsys/anacron when starting (#58462) - require crontabs (#21176) - update source url Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt
61 lines
834 B
Bash
Executable file
61 lines
834 B
Bash
Executable file
#!/bin/sh
|
|
# Startup script for anacron
|
|
#
|
|
# chkconfig: 2345 95 05
|
|
# description: Run cron jobs that were left out due to downtime
|
|
|
|
# Source function library.
|
|
. /etc/rc.d/init.d/functions
|
|
|
|
[ -f /usr/sbin/anacron ] || exit 0
|
|
|
|
prog="anacron"
|
|
|
|
start() {
|
|
echo -n $"Starting $prog: "
|
|
daemon +19 anacron -s
|
|
RETVAL=$?
|
|
echo
|
|
return $RETVAL
|
|
}
|
|
|
|
stop() {
|
|
if test "x`pidof anacron`" != x; then
|
|
echo -n $"Stopping $prog: "
|
|
killproc anacron
|
|
echo
|
|
fi
|
|
RETVAL=$?
|
|
return $RETVAL
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
|
|
stop)
|
|
stop
|
|
;;
|
|
|
|
status)
|
|
status anacron
|
|
;;
|
|
restart)
|
|
stop
|
|
start
|
|
;;
|
|
condrestart)
|
|
if test "x`pidof anacron`" != x; then
|
|
stop
|
|
start
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
|
|
exit 1
|
|
|
|
esac
|
|
|
|
exit $RETVAL
|