From 1be4440342a9f22258593502f6ecf68ff1bfef8c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 10 Oct 2023 17:11:27 -0400 Subject: Parse interval suffixes --- kitd.8 | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'kitd.8') diff --git a/kitd.8 b/kitd.8 index 9d5b89a..4bce90b 100644 --- a/kitd.8 +++ b/kitd.8 @@ -1,4 +1,4 @@ -.Dd October 8, 2023 +.Dd October 10, 2023 .Dt KITD 8 .Os . @@ -30,11 +30,22 @@ using exponential backoff. The options are as follows: .Bl -tag -width Ds .It Fl c Ar cooloff -The interval in milliseconds -for which the child process must live +The interval for which +the child process must live before the restart interval is reset to its initial value. -The default interval is 15 minutes. +.Pp +The interval may have a suffix of +.Sy s , m , h +or +.Sy d +for seconds, minutes, hours or days, +respectively. +Otherwise, +the interval is in milliseconds. +.Pp +The default cooloff interval is +.Sy 15m . .It Fl d Do not daemonize. Log to standard error @@ -47,12 +58,15 @@ The default is the last path component of .Ar command . .It Fl t Ar restart -The initial interval in milliseconds -between automatic restarts. +The initial interval between automatic restarts. This interval is doubled each time the child process is restarted. -The default interval is 1 second. +.Pp +The interval is interpreted as with +.Fl c . +The default restart interval is +.Sy 1s . .El . .Pp -- cgit 1.4.1