Another upgrade bug.
This commit is contained in:
parent
5495bc13f5
commit
e23a698a19
16
cronie.spec
16
cronie.spec
@ -6,7 +6,7 @@
|
|||||||
Summary: Cron daemon for executing programs at set times
|
Summary: Cron daemon for executing programs at set times
|
||||||
Name: cronie
|
Name: cronie
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?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
|
||||||
@ -82,7 +82,7 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/cron.deny
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add crond
|
/sbin/chkconfig --add crond
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
@ -98,15 +98,12 @@ fi
|
|||||||
#copy the lock, remove old daemon from chkconfig
|
#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 everytime, when we upgrade cronie
|
#add new daemon into chkconfig everytime, when we upgrade to cronie from vixie-cron
|
||||||
%triggerpostun -- vixie-cron
|
%triggerpostun -- vixie-cron
|
||||||
/sbin/chkconfig --add crond;
|
/sbin/chkconfig --add crond
|
||||||
# it's useless because afer upgrade from cd are daemons dead
|
[ -f /var/lock/subsys/cronie ] && ( rm -f /var/lock/subsys/cronie ; service crond restart ) > /dev/null 2>&1 ||:
|
||||||
#[ -f /var/lock/subsys/cronie ] && ( rm -f /var/lock/subsys/cronie ;
|
|
||||||
service crond restart ) > /dev/null 2>&1 ||:
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -127,6 +124,9 @@ service crond restart ) > /dev/null 2>&1 ||:
|
|||||||
%config(noreplace) %{_sysconfdir}/cron.deny
|
%config(noreplace) %{_sysconfdir}/cron.deny
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 4 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.1-2
|
||||||
|
- 49864 upgrade/update problem. Syntax error in spec.
|
||||||
|
|
||||||
* Wed May 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.1-1
|
* Wed May 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.1-1
|
||||||
- release 1.1
|
- release 1.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user