From: Dmitry Burmistrov Date: Thu, 12 Dec 2013 17:59:09 +0000 (+0400) Subject: Update mcollective.init script according to OSCI-969 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=781f13c0a1129de89dfc51711d06b36e51490e28;p=packages%2Fprecise%2Fmcollective.git Update mcollective.init script according to OSCI-969 Change-Id: Ib61ba93c3f0dd46bb172d31d3c51c5f9913e658a --- diff --git a/debian/mcollective.init b/debian/mcollective.init index 6fb229b..2cd6cff 100755 --- a/debian/mcollective.init +++ b/debian/mcollective.init @@ -47,7 +47,7 @@ case "$1" in echo "Starting daemon: " $name # start the program if [ -f $pidfile ]; then - if [ -f "$(cat /proc/$(cat $pidfile)/exe > /dev/null)" ] ; then + if [ -f /proc/"$(cat $pidfile)"/exe ] ; then echo MCollective appears to be running exit 1 else