diff options
| author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2025-04-09 04:09:45 +0200 |
|---|---|---|
| committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2025-04-09 04:09:45 +0200 |
| commit | 0533adb1da029458610edc7601e28f62164025b1 (patch) | |
| tree | 90312afb4b813e632a55c05ad157d65283b852ee | |
| parent | 9603aab784c32289c25b65d7d6586a7a6b086b7e (diff) | |
supervise-daemon: add defaults for respawn_period and respawn_delayorigin/respawn-with-units
| -rw-r--r-- | src/supervise-daemon/supervise-daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supervise-daemon/supervise-daemon.c b/src/supervise-daemon/supervise-daemon.c index a16b49b6..4b6aee47 100644 --- a/src/supervise-daemon/supervise-daemon.c +++ b/src/supervise-daemon/supervise-daemon.c @@ -180,8 +180,8 @@ static int tty_fd = -1; #endif static pid_t child_pid; static int respawn_count = 0; -static struct timespec respawn_period; -static struct timespec respawn_delay; +static struct timespec respawn_period = { .tv_sec = 5 * 60 }; +static struct timespec respawn_delay = { .tv_nsec = 200 * 1000 }; static int respawn_max = 10; static char *fifopath = NULL; static int fifo_fd = 0; |
