Browse Source

autossh: fix procd env issue

This commit fixes an issue where the `AUTOSSH_GATETIME` is not available in the `procd`  environment which gets overwritten by the second `procd_set_param env` call.
It now calls the `procd_set_param env` once with the two variables, instead of twice.

Signed-off-by: Leo Soares <leo@hyper.ag>
lilik-openwrt-22.03
Leo Soares 3 years ago
committed by Rosen Penev
parent
commit
9c4d79519c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      net/autossh/files/autossh.init

+ 1
- 2
net/autossh/files/autossh.init View File

@ -18,8 +18,7 @@ start_instance() {
procd_open_instance procd_open_instance
procd_set_param command /usr/sbin/autossh -M ${monitorport:-20000} ${ssh} procd_set_param command /usr/sbin/autossh -M ${monitorport:-20000} ${ssh}
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:-5}
procd_set_param env AUTOSSH_GATETIME="${gatetime:-30}"
procd_set_param env AUTOSSH_POLL="${poll:-600}"
procd_set_param env AUTOSSH_GATETIME="${gatetime:-30}" AUTOSSH_POLL="${poll:-600}"
procd_close_instance procd_close_instance
} }


Loading…
Cancel
Save