Fix parens
This commit is contained in:
parent
b70501ef45
commit
a1e40e9beb
@ -210,7 +210,7 @@ rc_update(int argc, char **argv)
|
|||||||
runlevels = rc_stringlist_new();
|
runlevels = rc_stringlist_new();
|
||||||
|
|
||||||
if (optind >= argc) {
|
if (optind >= argc) {
|
||||||
if (! action & DOSHOW)
|
if (!(action & DOSHOW))
|
||||||
eerrorx("%s: no service specified", applet);
|
eerrorx("%s: no service specified", applet);
|
||||||
} else {
|
} else {
|
||||||
service = argv[optind];
|
service = argv[optind];
|
||||||
|
@ -586,8 +586,7 @@ svc_start(bool deps)
|
|||||||
state = rc_service_state(service);
|
state = rc_service_state(service);
|
||||||
|
|
||||||
if (rc_yesno(getenv("IN_HOTPLUG")) || in_background) {
|
if (rc_yesno(getenv("IN_HOTPLUG")) || in_background) {
|
||||||
if (! state & RC_SERVICE_INACTIVE &&
|
if (!(state & (RC_SERVICE_INACTIVE | RC_SERVICE_STOPPED)))
|
||||||
! state & RC_SERVICE_STOPPED)
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
background = true;
|
background = true;
|
||||||
rc_service_mark(service, RC_SERVICE_HOTPLUGGED);
|
rc_service_mark(service, RC_SERVICE_HOTPLUGGED);
|
||||||
|
Loading…
Reference in New Issue
Block a user