aboutsummaryrefslogtreecommitdiff
path: root/src/runscript.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-09 15:47:25 +0000
committerRoy Marples <roy@marples.name>2007-10-09 15:47:25 +0000
commitdb468457dc4c1b15f62b09d70a43d418343020b8 (patch)
treea90b6eb73c9d65efc98c98b78c4357b4dc7a707c /src/runscript.c
parent537ef36350e6e7ceb8fb51641e65387c9d6232c3 (diff)
Foo, should be a mask
Diffstat (limited to 'src/runscript.c')
-rw-r--r--src/runscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runscript.c b/src/runscript.c
index 5198b460..a4eefffe 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -1223,7 +1223,7 @@ 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)
+ if (retval & RC_SERVICE_STARTED)
retval = 0;
} else if (strcmp (optarg, "help") == 0) {
execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, "help", (char *) NULL);