fix missing argument for autossh

This commit is contained in:
Claudio Maradonna 2020-08-01 12:38:43 +02:00
parent 99980260c9
commit 6decc8a82e
Signed by: claudiomaradonna
GPG Key ID: 0CBA58694C5680D9
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ After=network.target
[Service] [Service]
Environment="AUTOSSH_GATETIME=0" Environment="AUTOSSH_GATETIME=0"
EnvironmentFile=/etc/default/secure-tunnel@%i 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 User=autossh
Restart=on-failure Restart=on-failure
RestartSec=5s RestartSec=5s