mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +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
+4
-5
+4
-5
@@ -864,13 +864,12 @@ static int show_status(char *arg)
|
||||
ERRX(69, "no such task or service(s): %s", arg);
|
||||
|
||||
if (quiet) {
|
||||
if (svc_is_runtask(svc))
|
||||
if (svc_is_runtask(svc)) {
|
||||
if (svc->started)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
else
|
||||
return svc->state != SVC_RUNNING_STATE;
|
||||
return 1;
|
||||
}
|
||||
return svc->state != SVC_RUNNING_STATE;
|
||||
}
|
||||
|
||||
pidfn = svc->pidfile;
|
||||
|
||||
Reference in new issue
Block a user