From 37dd6f950a5e875310de0dc620576fb90150f1a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 14 Dec 2010 20:58:24 +0000 Subject: [PATCH] - restart crond in pam trigger, would match also cronds which are not upgraded (vixie-crond has no upgrade path in th); rel 2 Changed files: pam.spec -> 1.308 --- pam.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pam.spec b/pam.spec index c825e30..a1e87d9 100644 --- a/pam.spec +++ b/pam.spec @@ -4,11 +4,8 @@ %bcond_with prelude # build with Prelude IDS support %bcond_without selinux # build without SELinux support %bcond_without audit # build with Linux Auditing library support -# + %define pam_pld_version 1.1.2-1 -# -%define _sbindir /sbin -# Summary: Pluggable Authentication Modules: modular, incremental authentication Summary(de.UTF-8): Einsteckbare Authentifizierungsmodule: modulare, inkrementäre Authentifizierung Summary(es.UTF-8): Módulos de autentificación plugables (PAM) @@ -20,7 +17,7 @@ Summary(tr.UTF-8): Modüler, artımsal doğrulama birimleri Summary(uk.UTF-8): Інструмент, що забезпечує аутентифікацію для програм Name: pam Version: 1.1.3 -Release: 1 +Release: 2 Epoch: 1 License: GPL or BSD Group: Base @@ -79,6 +76,8 @@ Conflicts: dev < 3.4-4 Conflicts: udev < 1:138-5 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _sbindir /sbin + %description PAM (Pluggable Authentication Modules) is a powerful, flexible, extensible authentication system which allows the system administrator @@ -372,6 +371,13 @@ if [ -d /var/lock/console -a -d /var/run/console ]; then rm -rf /var/lock/console fi +%triggerin -- cronie,vixie-cron,hc-cron,fcron,mcron +# restart crond if pam is upgraded +# (crond is linked with old libpam but tries to open modules linked with new libpam) +if [ "$1" != 1 ]; then + %service -q crond restart +fi + %post -p fh, error = io.open("/var/log/tallylog") if fh ~= nil then -- 2.44.0