aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runscript.c')
-rw-r--r--src/runscript.c3
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",