Tue Apr 03 2001 Crutcher Dunnavant <crutcher@redhat.com>
- add dependancy to vixie-cron (for /usr/bin/run-parts)
Tue Feb 13 2001 Tim Waugh <twaugh@redhat.com>
- killproc is a shell function and can't be passed as a parameter (bug
#27150).
Mon Feb 05 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix i18n in initscript ("Stopping anacron" wasn't translated) (#26076)
Fri Feb 02 2001 Trond Eivind Glomsrød <teg@redhat.com>
- i18nize initscript
Thu Dec 07 2000 Crutcher Dunnavant <crutcher@redhat.com>
- rebuild in rebuild cycle.
Mon Oct 30 2000 Matt Wilson <msw@redhat.com>
- touch /var/lock/subsys/anacron to prevent excess startage during init
level change
Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Shut down earlier to prevent NFS mounted /usr filesystems from causing
problems (Bug #16257)
63 lines
934 B
Bash
Executable file
63 lines
934 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 anacron
|
|
RETVAL=$?
|
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/anacron
|
|
echo
|
|
return $RETVAL
|
|
}
|
|
|
|
stop() {
|
|
if test "x`pidof anacron`" != x; then
|
|
echo -n $"Stopping $prog: "
|
|
killproc anacron
|
|
echo
|
|
fi
|
|
RETVAL=$?
|
|
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/anacron
|
|
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 0
|