aboutsummaryrefslogtreecommitdiffstats
path: root/system/autotunnel@.service
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-06-27 14:26:14 +0200
committerDavid Runge <dave@sleepmap.de>2015-06-27 14:26:14 +0200
commit31f2e1b25b593b3c935518151774d23358f3a20f (patch)
tree2277943b1d2dac77d385b297130519d7993fdbf1 /system/autotunnel@.service
parent68af516777af8f559d5853f28f4ecbe52735dd8a (diff)
parentcae71ea147acd1a6a7751ad9c2a0a6e3f7f9e651 (diff)
downloaduenv-31f2e1b25b593b3c935518151774d23358f3a20f.tar.gz
uenv-31f2e1b25b593b3c935518151774d23358f3a20f.tar.bz2
uenv-31f2e1b25b593b3c935518151774d23358f3a20f.tar.xz
uenv-31f2e1b25b593b3c935518151774d23358f3a20f.zip
Merge branch 'master' of sleepmap.de:uenv
* 'master' of sleepmap.de:uenv: scripts/autotunnel: Fixing SERVER_ALIVE_COUNT_MAX system/autotunnel@.service: Fixing script name. autotunnel: Adding example config, systemd service file and script for autossh managed SSH tunnel to predefined host
Diffstat (limited to 'system/autotunnel@.service')
-rw-r--r--system/autotunnel@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/autotunnel@.service b/system/autotunnel@.service
new file mode 100644
index 0000000..405a7d7
--- /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/autotunnel
+
+[Install]
+WantedBy=multi-user.target