From 8ca78641ff52a565b2ba41b8e3e699b75fcb5ed5 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 1 Dec 2023 14:43:12 +0100 Subject: [PATCH] feat: start emissary-agent later in the boot process and retry more times on error --- misc/emissary/init.d/emissary-agent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/emissary/init.d/emissary-agent b/misc/emissary/init.d/emissary-agent index 2195269..8f47137 100755 --- a/misc/emissary/init.d/emissary-agent +++ b/misc/emissary/init.d/emissary-agent @@ -1,7 +1,7 @@ #!/bin/sh /etc/rc.common USE_PROCD=1 -START=50 +START=99 STOP=50 start_service() { @@ -22,7 +22,7 @@ start_service() { procd_append_param command --workdir /usr/share/emissary procd_append_param command --config "$config_file" procd_append_param command agent run - procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5} + procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-17280} procd_set_param file "$config_file" procd_set_param stdout 1 procd_set_param stderr 1