mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +00:00
initctl: follow-up to e1c59a25, simplify
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
15dcebd0f1
commit
e177b866a9
1 file changed
+2
-3
+2
-3
@@ -864,12 +864,11 @@ static int show_status(char *arg)
|
|||||||
ERRX(69, "no such task or service(s): %s", arg);
|
ERRX(69, "no such task or service(s): %s", arg);
|
||||||
|
|
||||||
if (quiet) {
|
if (quiet) {
|
||||||
if (svc_is_runtask(svc))
|
if (svc_is_runtask(svc)) {
|
||||||
if (svc->started)
|
if (svc->started)
|
||||||
return 0;
|
return 0;
|
||||||
else
|
|
||||||
return 1;
|
return 1;
|
||||||
else
|
}
|
||||||
return svc->state != SVC_RUNNING_STATE;
|
return svc->state != SVC_RUNNING_STATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user