summaryrefslogtreecommitdiffstats
path: root/files/stunnel.service
diff options
context:
space:
mode:
Diffstat (limited to 'files/stunnel.service')
-rw-r--r--files/stunnel.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/stunnel.service b/files/stunnel.service
new file mode 100644
index 0000000..dce2366
--- /dev/null
+++ b/files/stunnel.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=SSL tunnel for network daemons
+After=network.target
+After=syslog.target
+
+[Install]
+WantedBy=multi-user.target
+Alias=stunnel.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/stunnel /etc/stunnel/stunnel.conf
+ExecStop=/usr/bin/killall -9 stunnel
+
+# Give up if ping don't get an answer
+TimeoutSec=600
+
+Restart=always
+PrivateTmp=false