Greg Freemyer wrote:
I'm trying to get 2 reverse tunnels setup via autossh.
There is a autossh.service file in the autossh package but it only setups one tunnel.
This is the template service file that ships in the RPM.
=============================== [Unit] Description=AutoSSH service for port 2222 After=network.target
[Service] Environment="AUTOSSH_GATETIME=0" ExecStart=/usr/bin/autossh -M 0 -NL 2222:localhost:2222 -o TCPKeepAlive=yes foo@bar.com
[Install] WantedBy=multi-user.target ==================================
I need to call autossh twice.
Should I just create 2 separate service files? Or can I have 2 ExecStart lines?
Create two instances? -- Per Jessen, Zürich (16.1°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org