feat: start emissary-agent later in the boot process and retry more times on error
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
wpetit 2023-12-01 14:43:12 +01:00
parent e2417fbdcc
commit 8ca78641ff
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
USE_PROCD=1 USE_PROCD=1
START=50 START=99
STOP=50 STOP=50
start_service() { start_service() {
@ -22,7 +22,7 @@ start_service() {
procd_append_param command --workdir /usr/share/emissary procd_append_param command --workdir /usr/share/emissary
procd_append_param command --config "$config_file" procd_append_param command --config "$config_file"
procd_append_param command agent run 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 file "$config_file"
procd_set_param stdout 1 procd_set_param stdout 1
procd_set_param stderr 1 procd_set_param stderr 1