Hello community, here is the log from the commit of package cronie for openSUSE:Factory checked in at 2019-05-22 10:54:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cronie (Old) and /work/SRC/openSUSE:Factory/.cronie.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cronie" Wed May 22 10:54:25 2019 rev:72 rq:704171 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/cronie/cronie.changes 2019-04-02 09:17:22.156471712 +0200 +++ /work/SRC/openSUSE:Factory/.cronie.new.5148/cronie.changes 2019-05-22 10:54:30.319163795 +0200 @@ -1,0 +2,8 @@ +Thu May 16 10:16:10 UTC 2019 - Kristýna Streitová <[email protected]> + +- add cronie-1.5.4-always_create_pid_file.patch to always create + a pid file even when the cron daemon does not fork. The PID file + is useful to avoid running multiple "cron -n" instances at once + [bsc#1133100] + +------------------------------------------------------------------- New: ---- cronie-1.5.4-always_create_pid_file.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cronie.spec ++++++ --- /var/tmp/diff_new_pack.WQbCrz/_old 2019-05-22 10:54:31.159161868 +0200 +++ /var/tmp/diff_new_pack.WQbCrz/_new 2019-05-22 10:54:31.163161859 +0200 @@ -52,6 +52,7 @@ # in manpage file because the /etc/crontab is still used in SUSE. Patch13: fix-manpage-replace-anacrontab-with-crontab.patch Patch14: cronie-1.5.4-dont_abort_loading_crontab.patch +Patch15: cronie-1.5.4-always_create_pid_file.patch BuildRequires: audit-devel BuildRequires: autoconf BuildRequires: automake @@ -112,6 +113,7 @@ %patch12 -p1 %patch13 -p1 %patch14 -p1 +%patch15 -p1 %build # fill macro CRON_VERSION it is used in top three lines of crontab file,should be reworked ++++++ cronie-1.5.4-always_create_pid_file.patch ++++++ >From 0570c2cd979bc9ce1da6a873089e89dbca900a1f Mon Sep 17 00:00:00 2001 From: Tomas Mraz <[email protected]> Date: Tue, 7 May 2019 14:45:53 +0200 Subject: [PATCH] Revert "Avoid creating pid files when crond doesn't fork" This reverts commit 5b285b46b88dc63689c6a56542cb2ba81f861b66. The PID file is useful to avoid running multiple crond instances at once. --- src/misc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/misc.c b/src/misc.c index 42153b8..faf6ffb 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. */
