mirror of
https://github.com/pygos/init.git
synced 2024-12-22 15:20:49 +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("\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) {
|
||||
fputs("\tMust be run before:\n", stdout);
|
||||
|
||||
|
|
Loading…
Reference in a new issue