mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
initctl: follow-up to e1c59a25, simplify
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+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