[packages/cronie] Rel 6; condrestart instead of restart and always exit with 0 status

arekm arekm at pld-linux.org
Thu Dec 16 07:58:45 CET 2021


commit 216820e50b0a882a8681dd909282d6f69c773a34
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Dec 16 07:58:00 2021 +0100

    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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cronie.git/commitdiff/216820e50b0a882a8681dd909282d6f69c773a34



More information about the pld-cvs-commit mailing list