run.sh: fix -status command exit codes
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / run.sh
index 1f3e8e20f3c9b596275868549ac1707f3a2e69d3..90e3b03ae4b7168fcc51a70a32499caca2086515 100755 (executable)
@@ -190,7 +190,7 @@ if [ "${statusdaemon}" -eq 1 ]; then
         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"