This commit is contained in:
douniwan5788 2024-04-21 21:20:40 +02:00 committed by GitHub
commit 7ebb6f1788
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ start_instance() {
procd_set_param command /usr/sbin/autossh ${forwarding} ${ssh}
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
[ -n "$pidfile" ] && procd_set_param pidfile "$pidfile"
#dropbear ssh seek the known_hosts file in $HOME/.ssh/known_hosts
procd_append_param env "HOME=/root"
[ -n "$monitorport" ] && procd_append_param env "AUTOSSH_PORT=$monitorport"
[ -n "$poll" ] && procd_append_param env "AUTOSSH_POLL=$poll"