diff --git a/cronie-service-stop.patch b/cronie-service-stop.patch new file mode 100644 index 0000000..fe91673 --- /dev/null +++ b/cronie-service-stop.patch @@ -0,0 +1,29 @@ +From 1a732d69938788dde2f1a8bf3ae1b9dc48d10c99 Mon Sep 17 00:00:00 2001 +From: HONDA Hirofumi +Date: Mon, 19 Oct 2009 12:25:15 +0200 +Subject: [PATCH] When parent crond is stopped and child crond (executing program) is running,"service crond status" reports "crond (pid XXX) is running...". +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Marcela Mašláňová +--- + cronie.init | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/cronie.init b/cronie.init +index 0d98159..446607e 100755 +--- a/cronie.init ++++ b/cronie.init +@@ -88,7 +88,7 @@ force_reload() { + + rh_status() { + # run checks to determine if the service is running or use generic status +- status $prog ++ status -p /var/run/crond.pid $prog + } + + rh_status_q() { +-- +1.6.5.rc2 + diff --git a/cronie.spec b/cronie.spec index 8d6a4d2..f54795c 100644 --- a/cronie.spec +++ b/cronie.spec @@ -6,11 +6,12 @@ Summary: Cron daemon for executing programs at set times Name: cronie Version: 1.4.2 -Release: 1%{?dist} +Release: 2%{?dist} License: MIT and BSD and GPLv2 Group: System Environment/Base URL: https://fedorahosted.org/cronie Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz +Patch0: cronie-service-stop.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: syslog, bash >= 2.0 @@ -58,6 +59,7 @@ overloaded in settings. %prep %setup -q +%patch0 -p1 %build @@ -173,6 +175,9 @@ cp -a /var/lock/subsys/crond /var/lock/subsys/cronie > /dev/null 2>&1 ||: %{_mandir}/man8/anacron.* %changelog +* Mon Oct 19 2009 Marcela Mašláňová - 1.4.2-2 +- 529632 service crond stop returns appropriate value + * Mon Oct 12 2009 Marcela Mašláňová - 1.4.2-1 - new release