This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
anacron/anacron.init
cvsdist a7d7315cc4 auto-import changelog data from anacron-2.3-9.src.rpm
Fri Aug 04 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Start it later so services some cron scripts may depend on are running
    (Bug #15335)
Thu Aug 03 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix up initscript (Bug #15123 and an unreported bug)
Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
- move initscript back
Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
Mon Jul 10 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix up initscripts (Bug #13625)
Tue Jul 04 2000 Matt Wilson <msw@redhat.com>
- Prereq: /sbin/chkconfig
Mon Jun 26 2000 Preston Brown <pbrown@redhat.com>
- move initscript to /etc/init.d, fix up post/preun/postun scripts.
Mon Jun 26 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 2.3
Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
- use %{_mandir}
Fri Mar 03 2000 Tim Powers <timp@redhat.com>
- fixed startup script so that it doesn't put stuff in /var/lock/subsys.
    Complains since anacronda turns itself off when it is run, and the file
    in /var/lock/subsys isn't removed.
Mon Feb 28 2000 Tim Powers <timp@redhat.com>
- fixed startup script, now it actually stops, gives status and restarts.
    Fixes bug #9835
Mon Feb 07 2000 Bill Nottingham <notting@redhat.com>
- handle compressed manpages
Fri Feb 04 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- rebuild to get compressed man pages
- mark /etc/cron.daily/... as config files
Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
- fix annoying defines
- rebuild to update description and group
Thu Jan 06 2000 Bernhard Rosenkränzer <bero@redhat.com>
- initial Red Hat package
Wed Dec 29 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Remove cron.hourly check (unusefull).
Wed Nov 10 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- 2.1 from debian.
- Fix typo in initscripts.
Thu Jul 22 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Fix wrong entries in anacrontab.
- Add a /etc/rc.sysinit/ script
Tue Apr 27 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Fix bug with /var/spool/anacron/
Sat Apr 10 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- First version mainly inspired from the Debian package.
2004-09-09 02:58:41 +00:00

56 lines
798 B
Bash
Executable file

#!/bin/sh
# Startup script for anacron
#
# chkconfig: 2345 95 92
# 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
start() {
echo -n "Starting anacron: "
daemon anacron
RETVAL=$?
echo
return $RETVAL
}
stop() {
echo -n "Shutting down anacron "
if test "x`pidof anacron`" != x; then killproc anacron; fi
echo
return 0
}
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: anacron {start|stop|restart|condrestart|status}"
exit 1
esac
exit 0