mirror of
https://github.com/pygos/init.git
synced 2024-11-22 11:19:45 +01:00
Print out respawn limit in service list command
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
56e6004336
commit
aa1356cb19
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ static void print_services(service_t *svc)
|
||||||
printf("\tType: %s\n", svc_type_to_string(svc->type));
|
printf("\tType: %s\n", svc_type_to_string(svc->type));
|
||||||
printf("\tTarget: %s\n", svc_target_to_string(svc->target));
|
printf("\tTarget: %s\n", svc_target_to_string(svc->target));
|
||||||
|
|
||||||
|
if (svc->type == SVC_RESPAWN && svc->rspwn_limit > 0)
|
||||||
|
printf("\tRespawn limit: %d\n", svc->rspwn_limit);
|
||||||
|
|
||||||
if (svc->num_before) {
|
if (svc->num_before) {
|
||||||
fputs("\tMust be run before:\n", stdout);
|
fputs("\tMust be run before:\n", stdout);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue