mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
initctl: Only show service name, not path, with plain show
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
2555fe8e96
commit
cef4b5761a
1 file changed
+8
-1
@@ -247,7 +247,14 @@ static int show_status(char *arg)
|
|||||||
printf("%-10.10s ", lvls);
|
printf("%-10.10s ", lvls);
|
||||||
|
|
||||||
if (!verbose) {
|
if (!verbose) {
|
||||||
printf("%-20s %s\n", svc->cmd, svc->desc);
|
char *name = strrchr(svc->cmd, '/');
|
||||||
|
|
||||||
|
if (!name)
|
||||||
|
name = svc->cmd;
|
||||||
|
else
|
||||||
|
name++;
|
||||||
|
|
||||||
|
printf("%-20s %s\n", name, svc->desc);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user