diff --git a/cronie.spec b/cronie.spec index b14cbbe..32ca50b 100644 --- a/cronie.spec +++ b/cronie.spec @@ -1,10 +1,12 @@ %bcond_without selinux %bcond_without pam %bcond_without audit +%bcond_without inotify + Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.0 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT and BSD Group: System Environment/Base URL: https://fedorahosted.org/cronie @@ -54,7 +56,10 @@ SELinux. --with-selinux \ %endif %if %{with audit} ---with-audit +--with-audit \ +%endif +%if %{with inotify} +--with-inotify %endif make %{?_smp_mflags} @@ -92,13 +97,16 @@ if [ "$1" -ge "1" ]; then service crond condrestart > /dev/null 2>&1 ||: fi -#copy the lock +#copy the lock, remove old daemon from chkconfig %triggerun -- vixie-cron cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||: +/sbin/chkconfig --del crond #if the lock exist, then we restart daemon (it was running in the past). +#add new daemon into chkconfig %triggerpostun -- vixie-cron [ -f /var/lock/subsys/cronie ] && ( rm -f /var/lock/subsys/cronie ; \ +/sbin/chkconfig --add crond; \ service crond restart ) > /dev/null 2>&1 ||: %files @@ -120,6 +128,9 @@ service crond restart ) > /dev/null 2>&1 ||: %config(noreplace) %{_sysconfdir}/cron.deny %changelog +* Wed Feb 6 2008 Marcela Maslanova - 1.0-4 +- 431366 after reboot wasn't cron in chkconfig + * Tue Feb 5 2008 Marcela Maslanova - 1.0-3 - 431366 trigger part => after update from vixie-cron on cronie will be daemon running.