Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Cluster Development (http://www.linux-archive.org/cluster-development/)
-   -   cman: Remove qdiskd pid file after clean stop. (http://www.linux-archive.org/cluster-development/266889-cman-remove-qdiskd-pid-file-after-clean-stop.html)

Lon Hohberger 03-20-2009 02:05 PM

cman: Remove qdiskd pid file after clean stop.
 
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
cman/init.d/cman.in | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index fed4b1e..cbf0599 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -586,6 +586,7 @@ stop_qdiskd()
pid="$(pidof qdiskd)"
done
if [ -z "$(pidof qdiskd)" ]; then
+ [ -f /var/run/qdiskd.pid ] && rm -f /var/run/qdiskd.pid
return 0
else
return 1
--
1.5.6.6


All times are GMT. The time now is 08:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.