From 1f60e8f952527667fc4fc884e6d62f2bf67f26d0 Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Tue, 4 Jan 2011 15:30:24 +0100 Subject: [PATCH] fix: initscript - invalid pidfile check Resolves: #621122 --- tuned.initscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tuned.initscript b/tuned.initscript index be6b1ab..3b97280 100755 --- a/tuned.initscript +++ b/tuned.initscript @@ -26,6 +26,7 @@ config="/etc/tuned.conf" [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog +pidfile=/var/run/$prog/$prog.pid lockfile=/var/lock/subsys/$prog start () { @@ -69,7 +70,7 @@ force_reload() { rh_status() { # run checks to determine if the service is running or use generic status - status $prog + status -p $pidfile $prog } rh_status_q() {