Skip to content

Instantly share code, notes, and snippets.

@RushOnline
Forked from sameei/STUNNEL.service
Created April 7, 2016 20:25
Show Gist options
  • Save RushOnline/304bdeaf7e59467bd8ae5f15c780bc72 to your computer and use it in GitHub Desktop.
Save RushOnline/304bdeaf7e59467bd8ae5f15c780bc72 to your computer and use it in GitHub Desktop.
; in the name of ALLAH
; /etc/systemd/system/stunnel.service or /usr/lib/systemd/system/stunnel.service
; change "{{ config.conf }}" by your config path.
[Unit]
Description=SSL tunnel for network daemons
After=syslog.target
[Service]
ExecStart=/usr/sbin/stunnel {{ config.conf }}
ExecStop=kill -9 $(pgrep stunnel)
ExecStatus=pgrep stunnel
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