From 13a8726ec3029e62c6ad02f88f28eaa2001ba0e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 31 Oct 2010 22:18:08 +0000 Subject: [PATCH 1/1] - restart crond when pam is upgraded; rel 2 Changed files: cronie.spec -> 1.36 --- cronie.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cronie.spec b/cronie.spec index c4d09de..7d8e973 100644 --- a/cronie.spec +++ b/cronie.spec @@ -17,7 +17,7 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.4.6 -Release: 1 +Release: 2 License: MIT and BSD and GPL v2 Group: Daemons Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz @@ -170,6 +170,12 @@ if [ "$1" = "0" ]; then %groupremove crontab fi +%triggerin -- pam +# restart crond if pam is upgraded +if [ "$2" != 1 ]; then + %service -q crond restart +fi + %triggerun -- hc-cron,fcron,vixie-cron # Prevent preun from crond from working chmod a-x /etc/rc.d/init.d/crond -- 2.44.0