Skip to content

Instantly share code, notes, and snippets.

@MorphyDK
Created September 24, 2020 14:27
Show Gist options
  • Save MorphyDK/f41d8a6382f069d29cc8f6df0d3ce891 to your computer and use it in GitHub Desktop.
Save MorphyDK/f41d8a6382f069d29cc8f6df0d3ce891 to your computer and use it in GitHub Desktop.
TorGuard systemd service
[Unit]
Description=OpenVPN Robust And Highly Flexible Tunneling Application On <server>
Wants=network-online.target
After=network-online.target
[Service]
Type=forking
PIDFile=/run/openvpn-server.pid
ExecStart=/usr/sbin/openvpn --daemon --writepid /run/openvpn-server.pid --cd /etc/openvpn/ --auth-nocache --config TorGuard.Sweden.conf --log-append /var/log/openvpn.log
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment