initctl: Improve show SVC command output a bit, provide summary

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-18 21:04:17 +01:00
1 parent 0f1f51b5ad
commit db50c09ec5
1 file changed
+8 -2
+8 -2
View File
@@ -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)