When parent crond is stopped and child crond (executing program) is
running,"service crond status" reports "crond (pid XXX) is running...".
This commit is contained in:
parent
a4182f3e9a
commit
1462d4065f
29
cronie-service-stop.patch
Normal file
29
cronie-service-stop.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 1a732d69938788dde2f1a8bf3ae1b9dc48d10c99 Mon Sep 17 00:00:00 2001
|
||||||
|
From: HONDA Hirofumi <honda.hirofumi@oss.ntt.co.jp>
|
||||||
|
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á <mmaslano@redhat.com>
|
||||||
|
---
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user