Last active
December 25, 2016 12:49
-
-
Save sameei/ceaa1d9e60574d449ce5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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