echo "Starting daemon: " $name
# start the program
if [ -f $pidfile ]; then
- if [ -f "$(cat /proc/$(cat $pidfile)/exe > /dev/null)" ] ; then
+ if [ -f $(cat /proc/$(cat $pidfile)/exe > /dev/null) ] ; then
echo MCollective appears to be running
exit 1
else
echo "Starting daemon: " $name
# start the program
if [ -f $pidfile ]; then
- if [ -f "$(cat /proc/$(cat $pidfile)/exe > /dev/null)" ] ; then
+ if [ -f $(cat /proc/$(cat $pidfile)/exe > /dev/null) ] ; then
echo MCollective appears to be running
exit 1
else