Before returning from stop_sessiond bash function, we wait that the
sessiond daemon completely stopped. If it hungs up at that point, the
kill did not work and investigation can begin.
Signed-off-by: David Goulet <dgoulet@efficios.com>
echo -e "\e[1;31mFAILED\e[0m"
return 1
else
echo -e "\e[1;31mFAILED\e[0m"
return 1
else
+ out=1
+ while [ -n "$out" ]; do
+ out=$(pidof lt-$SESSIOND_BIN)
+ sleep 0.5
+ done
echo -e "\e[1;32mOK\e[0m"
fi
}
echo -e "\e[1;32mOK\e[0m"
fi
}