run.sh: fix -status command exit codes 79/4379/1
authorChris Wright <chrisw@sous-sol.org>
Sun, 19 Jan 2014 07:37:05 +0000 (23:37 -0800)
committerChris Wright <chrisw@sous-sol.org>
Sun, 19 Jan 2014 07:43:34 +0000 (23:43 -0800)
commit6a83cd72792a38c4956c76ff95be54fcda32f710
tree8dc93f3a5a1fe48a3d80843ddc7734eaa82c0e63
parentb369c0185a99952c3609aad40ebeba3e4be8c5b2
run.sh: fix -status command exit codes

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>
opendaylight/distribution/opendaylight/src/main/resources/run.sh