summaryrefslogtreecommitdiff
path: root/servicecmd
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-04 14:07:37 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-04 14:08:12 +0200
commitaa1356cb190a3416936b25f75ecaaa8684c6fcde (patch)
tree738d839f2c98f02ae75620be29fae144750985c3 /servicecmd
parent56e6004336aeb3a7e92e8418430217c42feb2515 (diff)
Print out respawn limit in service list command
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'servicecmd')
-rw-r--r--servicecmd/list.c3
1 files changed, 3 insertions, 0 deletions
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);