aboutsummaryrefslogtreecommitdiff
path: root/src/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-31 22:34:26 +0000
committerRoy Marples <roy@marples.name>2007-10-31 22:34:26 +0000
commitc8de77fbbee099f9e21e4363b049cd36453588ea (patch)
tree35d199d1fbbab1dc7b5247109e0b60f2faf7b83e /src/rc.c
parent9fa717fb1d51356a4fb3a6908048a142fe4a8b9a (diff)
Fix starting state and clean some whitespace
Diffstat (limited to 'src/rc.c')
-rw-r--r--src/rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc.c b/src/rc.c
index 894eccb2..21b87880 100644
--- a/src/rc.c
+++ b/src/rc.c
@@ -284,7 +284,7 @@ static int do_service (int argc, char **argv)
else if (strcmp (applet, "service_inactive") == 0)
ok = (rc_service_state (argv[0]) & RC_SERVICE_INACTIVE);
else if (strcmp (applet, "service_starting") == 0)
- ok = (rc_service_state (argv[0]) & RC_SERVICE_STOPPING);
+ ok = (rc_service_state (argv[0]) & RC_SERVICE_STARTING);
else if (strcmp (applet, "service_stopping") == 0)
ok = (rc_service_state (argv[0]) & RC_SERVICE_STOPPING);
else if (strcmp (applet, "service_coldplugged") == 0)
@@ -318,7 +318,7 @@ static int do_mark_service (int argc, char **argv)
else if (strcmp (applet, "mark_service_inactive") == 0)
ok = rc_service_mark (argv[0], RC_SERVICE_INACTIVE);
else if (strcmp (applet, "mark_service_starting") == 0)
- ok = rc_service_mark (argv[0], RC_SERVICE_STOPPING);
+ ok = rc_service_mark (argv[0], RC_SERVICE_STARTING);
else if (strcmp (applet, "mark_service_stopping") == 0)
ok = rc_service_mark (argv[0], RC_SERVICE_STOPPING);
else if (strcmp (applet, "mark_service_coldplugged") == 0)