*docs* For better cooperation between cronie and anacron, cronie now
include anacron as a subpackage. Each hour cron executes scripts from cron.hourly which contains 0anacron executable. 0anacron script checks whether the regular jobs - cron.daily, cron.weekly and cron.monthly - were executed or not. The list of all regular jobs is in /etc/regular-jobs instead of /etc/crontab. Manual pages mentioned options how to set up regularly-jobs to behave the same way as in the previous versions of cron.
This commit is contained in:
parent
480fe2f975
commit
a1ab94585c
@ -1 +1 @@
|
|||||||
cronie-1.3.tar.gz
|
cronie-1.4.tar.gz
|
||||||
|
41
cronie.spec
41
cronie.spec
@ -5,19 +5,16 @@
|
|||||||
|
|
||||||
Summary: Cron daemon for executing programs at set times
|
Summary: Cron daemon for executing programs at set times
|
||||||
Name: cronie
|
Name: cronie
|
||||||
Version: 1.3
|
Version: 1.4
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
License: MIT and BSD
|
License: MIT and BSD and GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: https://fedorahosted.org/cronie
|
URL: https://fedorahosted.org/cronie
|
||||||
Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
|
Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
|
||||||
Patch0: reboot-alias-check-the-return-value.patch
|
|
||||||
#Source0: http://mmaslano.fedorapeople.org/cronie/%{name}-%{version}.tar.gz
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
Requires: syslog, bash >= 2.0
|
Requires: syslog, bash >= 2.0
|
||||||
Requires: /usr/sbin/sendmail
|
Requires: /usr/sbin/sendmail
|
||||||
Requires: anacron
|
|
||||||
Conflicts: sysklogd < 1.4.1
|
Conflicts: sysklogd < 1.4.1
|
||||||
Provides: vixie-cron = 4:4.4
|
Provides: vixie-cron = 4:4.4
|
||||||
Obsoletes: vixie-cron <= 4:4.3
|
Obsoletes: vixie-cron <= 4:4.3
|
||||||
@ -46,9 +43,18 @@ scheduled times and related tools. It is a fork of the original vixie-cron and
|
|||||||
has security and configuration enhancements like the ability to use pam and
|
has security and configuration enhancements like the ability to use pam and
|
||||||
SELinux.
|
SELinux.
|
||||||
|
|
||||||
|
%package anacron
|
||||||
|
Summary: Utility for running regular jobs
|
||||||
|
Requires: crontabs
|
||||||
|
Group: System Environment/Base
|
||||||
|
|
||||||
|
%description anacron
|
||||||
|
Anacron becames part of cronie. Anacron is used only for running regular jobs.
|
||||||
|
The default settings execute regular jobs by anacron, however this could be
|
||||||
|
overloaded in settings.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -63,8 +69,10 @@ SELinux.
|
|||||||
--with-audit \
|
--with-audit \
|
||||||
%endif
|
%endif
|
||||||
%if %{with inotify}
|
%if %{with inotify}
|
||||||
--with-inotify
|
--with-inotify \
|
||||||
%endif
|
%endif
|
||||||
|
--enable-anacron
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -80,6 +88,10 @@ mkdir -pm755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/
|
|||||||
install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond
|
install -m 755 cronie.init $RPM_BUILD_ROOT%{_initrddir}/crond
|
||||||
install -m 644 crond.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/crond
|
install -m 644 crond.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/crond
|
||||||
touch $RPM_BUILD_ROOT%{_sysconfdir}/cron.deny
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/cron.deny
|
||||||
|
install -m 644 contrib/regularly-jobs $RPM_BUILD_ROOT%{_sysconfdir}/regularly-jobs
|
||||||
|
install -c -m755 contrib/0hourly $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/0hourly
|
||||||
|
mkdir -pm 755 $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly
|
||||||
|
install -c -m755 contrib/0anacron $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/0anacron
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -125,8 +137,21 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:
|
|||||||
%endif
|
%endif
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/crond
|
%config(noreplace) %{_sysconfdir}/sysconfig/crond
|
||||||
%config(noreplace) %{_sysconfdir}/cron.deny
|
%config(noreplace) %{_sysconfdir}/cron.deny
|
||||||
|
%config(noreplace) %{_sysconfdir}/regularly-jobs
|
||||||
|
|
||||||
|
%files anacron
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_sbindir}/anacron
|
||||||
|
%attr(0644,root,root) %{_sysconfdir}/cron.d/0hourly
|
||||||
|
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
|
||||||
|
%{_mandir}/man5/regularly-jobs.*
|
||||||
|
%{_mandir}/man5/anacrontab.*
|
||||||
|
%{_mandir}/man8/anacron.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 20 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.4-1
|
||||||
|
- merge cronie and anacron
|
||||||
|
|
||||||
* Thu Jun 18 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.3-2
|
* Thu Jun 18 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1.3-2
|
||||||
- 506560 check return value of access
|
- 506560 check return value of access
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user