1
0
Fork 0
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:
David Oberhollenzer 2018-04-04 14:07:37 +02:00
parent 56e6004336
commit aa1356cb19

View file

@ -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);