Currently -status command exits with exit code 0 to represent both
'running' and 'not running' state when pidfile is found and -1 when
pidfile is not found (likely not running). Overloading exit code 0 makes
wrapper scripts incapable of differentiating 'running' from 'not running.'
Make 0 == running, 1 == not running, and -1 likely not running.
Change-Id: Ic258ab34e03ae1777b00bab75d1cfe30bc6c90da
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
else
echo "Controller with PID: ${daemonpid} -- Doesn't seem to exist"
rm -f "${pidfile}"
- exit 0
+ exit 1
fi
else
echo "Doesn't seem any Controller daemon is currently running, at least no PID file has been found"