autossh: Fix autostart error

This commit is contained in:
luxiaok 2020-03-02 15:30:45 +08:00
parent 5bd792ec17
commit cd9afdb1e9

View File

@ -14,6 +14,8 @@ start_instance() {
[ "$enabled" = 1 ] || exit 0
export HOME=/root
export AUTOSSH_PATH=ssh
export AUTOSSH_GATETIME="${gatetime:-30}"
export AUTOSSH_POLL="${poll:-600}"
service_start /usr/sbin/autossh -M ${monitorport:-20000} -f ${ssh}