diff --git a/secure-tunnel@.service b/secure-tunnel@.service index 589a9cb..c3859df 100644 --- a/secure-tunnel@.service +++ b/secure-tunnel@.service @@ -5,7 +5,7 @@ After=network.target [Service] Environment="AUTOSSH_GATETIME=0" EnvironmentFile=/etc/default/secure-tunnel@%i -ExecStart=/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure" -NR ${JH_PORT}:localhost:"${HTE_PORT}" "${USER}"@"${TARGET}" +ExecStart=/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure yes" -NR ${JH_PORT}:localhost:"${HTE_PORT}" "${USER}"@"${TARGET}" User=autossh Restart=on-failure RestartSec=5s