Fix scriptlet for upgrade.
This commit is contained in:
parent
00da7873bd
commit
733784eaec
12
cronie.spec
12
cronie.spec
@ -6,7 +6,7 @@
|
||||
Summary: Cron daemon for executing programs at set times
|
||||
Name: cronie
|
||||
Version: 1.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
License: MIT and BSD
|
||||
Group: System Environment/Base
|
||||
URL: https://fedorahosted.org/cronie
|
||||
@ -101,10 +101,11 @@ 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
|
||||
#add new daemon into chkconfig everytime, when we upgrade cronie
|
||||
%triggerpostun -- vixie-cron
|
||||
[ -f /var/lock/subsys/cronie ] && ( rm -f /var/lock/subsys/cronie ; \
|
||||
/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 ||:
|
||||
|
||||
%files
|
||||
@ -126,6 +127,9 @@ service crond restart ) > /dev/null 2>&1 ||:
|
||||
%config(noreplace) %{_sysconfdir}/cron.deny
|
||||
|
||||
%changelog
|
||||
* Tue May 20 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.0-6
|
||||
- 446360 check for lock didn't call chkconfig
|
||||
|
||||
* Tue Feb 12 2008 Marcela Maslanova <mmaslano@redhat.com> - 1.0-5
|
||||
- upgrade from less than cronie-1.0-4 didn't add chkconfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user