mirror of
https://github.com/troglobit/finit.git
synced 2026-11-15 19:13:11 +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)
|
||||
return 1;
|
||||
|
||||
printf("%s\n", svc_status(svc));
|
||||
return 0;
|
||||
printf("Service : %s\n", svc->cmd);
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user