mirror of
https://github.com/troglobit/finit.git
synced 2026-11-13 17:00:16 +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);
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pidfn = svc->pidfile;
|
pidfn = svc->pidfile;
|
||||||
|
|||||||
Reference in new issue
Block a user