mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
initctl: Improve show SVC command output a bit, provide summary
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
0f1f51b5ad
commit
db50c09ec5
1 file changed
+8
-2
+8
-2
@@ -415,8 +415,14 @@ static int show_status(char *arg)
|
|||||||
if (!svc)
|
if (!svc)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
printf("%s\n", svc_status(svc));
|
printf("Service : %s\n", svc->cmd);
|
||||||
return 0;
|
printf("Description : %s\n", svc->desc);
|
||||||
|
printf("PID : %d\n", svc->pid);
|
||||||
|
printf("Runlevels : %s\n", runlevel_string(runlevel, svc->runlevels));
|
||||||
|
printf("Status : %s\n", svc_status(svc));
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
|
return do_log(svc->cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!verbose)
|
if (!verbose)
|
||||||
|
|||||||
Reference in new issue
Block a user