update to 1.5.5

This commit is contained in:
oli_give_xiao_zi_li 2020-05-11 18:09:54 +08:00
parent ffe654e2cf
commit fcbda8f8df
4 changed files with 5 additions and 33 deletions

View File

@ -1,30 +0,0 @@
From 04d556ba1f3c18508c51231fa12a6d8f0bddf36c Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Tue, 23 Jul 2019 07:54:07 -0400
Subject: [PATCH] Revert "Avoid creating pid files when crond doesn't fork"
Reason: The PID file is useful to avoid running multiple crond instances
at once.
Source: https://github.com/cronie-crond/cronie/commit/0570c2cd979bc9ce1da6a873089e89dbca900a1f
Signed-off-by: root <root@localhost.localdomain>
---
src/misc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/misc.c b/src/misc.c
index 4efab64..587c761 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -315,9 +315,6 @@ void acquire_daemonlock(int closeflag) {
return;
}
- if (NoFork == 1)
- return; //move along, nothing to do here...
-
if (fd == -1) {
pidfile = _PATH_CRON_PID;
/* Initial mode is 0600 to prevent flock() race/DoS. */
--
2.19.1

Binary file not shown.

BIN
cronie-1.5.5.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,11 @@
Name: cronie
Version: 1.5.4
Release: 5
Version: 1.5.5
Release: 1
Summary: Standard UNIX daemon crond
License: GPLv2+ and ISC
URL: https://github.com/cronie-crond/cronie
Source0: https://github.com/cronie-crond/cronie/releases/download/cronie-%{version}-final/cronie-%{version}.tar.gz
Patch6000: Revert-Avoid-creating-pid-files.patch
Patch9000: bugfix-cronie-systemd-alias.patch
@ -119,6 +118,9 @@ systemctl try-restart crond.service >/dev/null 2>&1 || :
%changelog
* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.5.5-1
- update to 1.5.5-1
* Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.5.4-5
- Type:bugfix
- ID:NA