From 216820e50b0a882a8681dd909282d6f69c773a34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 16 Dec 2021 07:58:00 +0100 Subject: [PATCH 1/1] Rel 6; condrestart instead of restart and always exit with 0 status --- cronie.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cronie.spec b/cronie.spec index c7b5da6..849cb86 100644 --- a/cronie.spec +++ b/cronie.spec @@ -18,7 +18,7 @@ Summary: Cron daemon for executing programs at set times Summary(pl.UTF-8): Demon cron do uruchamiania programów o zadanym czasie Name: cronie Version: 1.5.7 -Release: 4 +Release: 6 License: MIT and BSD and GPL v2 Group: Daemons Source0: https://github.com/cronie-crond/cronie/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz @@ -174,8 +174,9 @@ if [ -x /bin/awk -a -x /bin/grep -a -f /var/log/cron ]; then LC_ALL=C /bin/awk -v d="$(LC_ALL=C date "+%b %e")" ' $1 " " $2 ~ d' /var/log/cron \ | /bin/grep -qE "PAM.*(Modu. jest nieznany|Module is unknown)" \ && echo "crond is failing on PAM, restarting ( https://github.com/cronie-crond/cronie/issues/87 )" >&2 \ - && /sbin/service crond restart + && /sbin/service crond condrestart fi +exit 0 EOF %clean -- 2.44.0