From 65552f3d26db9b2bcc0d131ddf69985670436f81 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 24 Apr 2015 23:51:33 +0200 Subject: autotunnel: Adding example config, systemd service file and script for autossh managed SSH tunnel to predefined host --- system/autotunnel@.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 system/autotunnel@.service (limited to 'system') diff --git a/system/autotunnel@.service b/system/autotunnel@.service new file mode 100644 index 0000000..b128cac --- /dev/null +++ b/system/autotunnel@.service @@ -0,0 +1,11 @@ +[Unit] +Description=AutoSSH managed SSH tunnel to predefined host +After=network.target + +[Service] +Environment="AUTOSSH_GATETIME=0" +EnvironmentFile=/etc/autotunnel/%I.conf +ExecStart=/usr/lib/systemd/scripts/tunnel-to-host + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3