1 Summary: A cron-like program that can run jobs lost during downtime
2 Summary(pl): Wersja crona z mo¿liwo¶ci± uruchamiania zapomnianych procesów
3 Summary(pt_BR): Auxiliar do cron para máquinas que não ficam ligadas o tempo todo
9 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
10 # Source0-md5: 865cc1dfe1ed75c470d3e6de13763f03
13 Patch0: %{name}-SIGTERM.patch
14 Patch1: %{name}-sendmail.patch
15 Patch2: %{name}-content-type.patch
16 URL: http://anacron.sourceforge.net/
17 Requires: /usr/lib/sendmail
19 Prereq: /sbin/chkconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Anacron (like `anac(h)ronistic') is a periodic command scheduler. It
24 executes commands at intervals specified in days. Unlike cron, it does
25 not assume that the system is running continuously. It can therefore
26 be used to control the execution of daily, weekly and monthly jobs (or
27 anything with a period of n days), on systems that don't run 24 hours
28 a day. When installed and configured properly, Anacron will make sure
29 that the commands are run at the specified intervals as closely as
30 machine-uptime permits.
32 This package is pre-configured to execute the daily jobs of the PLD
33 Linux system. You should install this program if your system isn't
34 powered on 24 hours a day to make sure the maintenance jobs of other
35 Red Hat Linux packages are executed each day.
38 Anacron (od ,,anac(h)ronistic'') zajmuje siê okresowym wykonywaniem
39 poleceñ. Wykonuje je w odstêpach bêd±cych wielokrotno¶ci± dni. W
40 przeciwieñstwie do crona nie zak³ada, ¿e system dzia³a 24 godziny na
41 dobê. Dziêki temu mo¿e byæ u¿ywany do wykonywania codziennych,
42 cotygodniowych i comiesiêcznych (lub innych powtarzaj±cych siê co ile¶
43 dni) zadañ w systemach, które nie s± w³±czone non-stop. Zainstalowany
44 i poprawnie skonfigurowany Anacron zapewni wykonywanie zleconych zadañ
45 tak blisko wyznaczonych terminów, jak tylko mo¿liwe.
47 Ten pakiet zosta³ wstêpnie skonfigurowany do dzia³ania w systemie PLD
48 Linux. Powiniene¶ zainstalowaæ ten program na systemach, które nie s±
49 w³±czone non-stop aby zapewniæ uruchamianie ró¿nych zadañ
50 utrzymuj±cych system we w³a¶ciwych odstêpach czasu.
53 Anacron é uma agenda para marcar a execução de comandos em horários
54 programados. Ao contrário do cron, o anacron não requer que o sistema
55 esteja rodando continuamente, podendo ser executado em sistemas que
56 não estão ligados 24 horas por dia.
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{_mandir}/man{5,8}} \
71 $RPM_BUILD_ROOT/{var/spool/anacron,etc/rc.d/init.d}
73 install anacron $RPM_BUILD_ROOT%{_sbindir}
74 install anacron.8 $RPM_BUILD_ROOT%{_mandir}/man8/
75 install anacrontab.5 $RPM_BUILD_ROOT%{_mandir}/man5/
76 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
77 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
79 for i in cron.daily cron.weekly cron.monthly; do
80 install -d $RPM_BUILD_ROOT%{_sysconfdir}/$i/
81 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/$i/0anacron
84 # anacron's cron script
86 # This script updates anacron time stamps. It is called through run-parts
87 # either by anacron itself or by cron.
89 # The script is called "0anacron" to assure that it will be executed
90 # _before_ all other scripts.
98 rm -rf $RPM_BUILD_ROOT
101 /sbin/chkconfig --add anacron
103 if [ -f /var/lock/subsys/anacron ]; then
104 /etc/rc.d/init.d/anacron restart >&2
106 echo "Run \"/etc/rc.d/init.d/anacron start\" to start Anacron daemon."
110 if [ "$1" = "0" ];then
111 if [ -f /var/lock/subsys/anacron ]; then
112 /etc/rc.d/init.d/anacron stop >&2
114 /sbin/chkconfig --del anacron
118 %defattr(644,root,root,755)
119 %doc ChangeLog README TODO
120 %attr(755,root,root) %{_sbindir}/anacron
121 %attr(754,root,root) /etc/rc.d/init.d/*
122 %config %{_sysconfdir}/anacrontab
123 %dir /var/spool/anacron/
124 %config %{_sysconfdir}/cron.daily/0anacron
125 %config %{_sysconfdir}/cron.monthly/0anacron
126 %config %{_sysconfdir}/cron.weekly/0anacron