mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 05:09:46 +08:00
autossh: Fix autostart error
This commit is contained in:
parent
5bd792ec17
commit
cd9afdb1e9
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user