/etc/rc.d/*/*crond shows no runlevel links to start or stop crond. Fix in
triggers.
This commit is contained in:
parent
16ca3a69a3
commit
a8a483058c
17
cronie.spec
17
cronie.spec
@ -1,10 +1,12 @@
|
|||||||
%bcond_without selinux
|
%bcond_without selinux
|
||||||
%bcond_without pam
|
%bcond_without pam
|
||||||
%bcond_without audit
|
%bcond_without audit
|
||||||
|
%bcond_without inotify
|
||||||
|
|
||||||
Summary: Cron daemon for executing programs at set times
|
Summary: Cron daemon for executing programs at set times
|
||||||
Name: cronie
|
Name: cronie
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: MIT and BSD
|
License: MIT and BSD
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: https://fedorahosted.org/cronie
|
URL: https://fedorahosted.org/cronie
|
||||||
@ -54,7 +56,10 @@ SELinux.
|
|||||||
--with-selinux \
|
--with-selinux \
|
||||||
%endif
|
%endif
|
||||||
%if %{with audit}
|
%if %{with audit}
|
||||||
--with-audit
|
--with-audit \
|
||||||
|
%endif
|
||||||
|
%if %{with inotify}
|
||||||
|
--with-inotify
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -92,13 +97,16 @@ if [ "$1" -ge "1" ]; then
|
|||||||
service crond condrestart > /dev/null 2>&1 ||:
|
service crond condrestart > /dev/null 2>&1 ||:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#copy the lock
|
#copy the lock, remove old daemon from chkconfig
|
||||||
%triggerun -- vixie-cron
|
%triggerun -- vixie-cron
|
||||||
cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||:
|
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).
|
#if the lock exist, then we restart daemon (it was running in the past).
|
||||||
|
#add new daemon into chkconfig
|
||||||
%triggerpostun -- vixie-cron
|
%triggerpostun -- vixie-cron
|
||||||
[ -f /var/lock/subsys/cronie ] && ( rm -f /var/lock/subsys/cronie ; \
|
[ -f /var/lock/subsys/cronie ] && ( rm -f /var/lock/subsys/cronie ; \
|
||||||
|
/sbin/chkconfig --add crond; \
|
||||||
service crond restart ) > /dev/null 2>&1 ||:
|
service crond restart ) > /dev/null 2>&1 ||:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -120,6 +128,9 @@ service crond restart ) > /dev/null 2>&1 ||:
|
|||||||
%config(noreplace) %{_sysconfdir}/cron.deny
|
%config(noreplace) %{_sysconfdir}/cron.deny
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 6 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.0-4
|
||||||
|
- 431366 after reboot wasn't cron in chkconfig
|
||||||
|
|
||||||
* Tue Feb 5 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.0-3
|
* Tue Feb 5 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.0-3
|
||||||
- 431366 trigger part => after update from vixie-cron on cronie will
|
- 431366 trigger part => after update from vixie-cron on cronie will
|
||||||
be daemon running.
|
be daemon running.
|
||||||
|
Loading…
Reference in New Issue
Block a user