From aa1356cb190a3416936b25f75ecaaa8684c6fcde Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 4 Apr 2018 14:07:37 +0200 Subject: Print out respawn limit in service list command Signed-off-by: David Oberhollenzer --- servicecmd/list.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'servicecmd') diff --git a/servicecmd/list.c b/servicecmd/list.c index 73e1aae..18b043f 100644 --- a/servicecmd/list.c +++ b/servicecmd/list.c @@ -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); -- cgit v1.2.3