ssh_tunnel/templates/local/autossh.service.j2

14 lines
235 B
Text
Raw Permalink Normal View History

2022-07-13 12:52:07 +02:00
[Unit]
Description=AutoSSH tunnel service
After=network-online.target
[Service]
Type=simple
User=autossh
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 gateway -N
Restart=always
2022-07-13 12:52:07 +02:00
[Install]
WantedBy=multi-user.target