From 733784eaecc3063ca8ee6c99d63b2fef507dce3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Tue, 20 May 2008 11:53:30 +0000 Subject: [PATCH] Fix scriptlet for upgrade. --- cronie.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cronie.spec b/cronie.spec index 006e835..b7450b8 100644 --- a/cronie.spec +++ b/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 - 1.0-6 +- 446360 check for lock didn't call chkconfig + * Tue Feb 12 2008 Marcela Maslanova - 1.0-5 - upgrade from less than cronie-1.0-4 didn't add chkconfig