However, the script execution is correct as FAHClient is running.
OS is Ubuntu 18.04 LTS.
The problem is from the line 123
Code: Select all
pid=$!
Code: Select all
if ps -hp $pid 2>/dev/null >/dev/null; then
Code: Select all
while [ "$(log_status)" == "$1" ]; do
#if ps -hp $pid 2>/dev/null >/dev/null; then
sleep 1
#else
#return 1
#fi
done