Skip to content

Instantly share code, notes, and snippets.

@sameei
Last active December 25, 2016 12:49
Show Gist options
  • Save sameei/ceaa1d9e60574d449ce5 to your computer and use it in GitHub Desktop.
Save sameei/ceaa1d9e60574d449ce5 to your computer and use it in GitHub Desktop.
; in the name of ALLAH
; at /etc/systemd/system/stunnel.service
; or at /usr/lib/systemd/system/stunnel.service
; or at /usr/lib/systemd/system/tunnelproxy.service
; change "{{ config.conf }}" by your config path.
[Unit]
Description=SSL tunnel for network daemons
After=syslog.target
[Service]
ExecStart=/usr/sbin/stunnel4 {{ config.conf }}
ExecStop=kill -9 $(pgrep stunnel)
ExecStatus=pgrep stunnel4
Type=forking
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment