diff options
author | Roy Marples <roy@marples.name> | 2007-10-09 15:44:22 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-09 15:44:22 +0000 |
commit | 537ef36350e6e7ceb8fb51641e65387c9d6232c3 (patch) | |
tree | d85c78fc59cbc168b46dcde2bfcbe54f9f0f1adf /src | |
parent | dc0ba7ebf3109b2bbdd73c5f0a411ba6129c2daf (diff) |
Ensure that runscript returns 0 when service is started
Diffstat (limited to 'src')
-rw-r--r-- | src/runscript.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runscript.c b/src/runscript.c index 1a350e67..5198b460 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -1223,7 +1223,8 @@ int runscript (int argc, char **argv) } else if (strcmp (optarg, "status") == 0) { rc_service_state_t r = svc_status (service); retval = (int) r; - + if (retval == RC_SERVICE_STARTED) + retval = 0; } else if (strcmp (optarg, "help") == 0) { execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, "help", (char *) NULL); eerrorx ("%s: failed to exec `" RCSCRIPT_HELP "': %s", |