X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=debian%2Fmcollective.init;fp=debian%2Fmcollective.init;h=2cd6cff6f00843a8e9f2fd16760be860c62f9698;hb=781f13c0a1129de89dfc51711d06b36e51490e28;hp=6fb229b0c1cc0397018eff095951ea090380706e;hpb=325d5f056f98fd9635d46ccdf1eb90094ad404dd;p=packages%2Fprecise%2Fmcollective.git 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