Skip to content

Instantly share code, notes, and snippets.

@cvcore
Created June 29, 2018 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvcore/057be5b7e5993c4672ca53bc5d468496 to your computer and use it in GitHub Desktop.
Save cvcore/057be5b7e5993c4672ca53bc5d468496 to your computer and use it in GitHub Desktop.
Custom VPN systemd unit (place under /etc/systemd/system/custom-vpn.service)
[Unit]
Description=Custom VPN
After=network.target auditd.service
[Service]
Type=forking
ExecStart=/opt/scripts/vpn_dns_update.sh daemon
ExecStop=/opt/scripts/vpn_dns_update.sh daemon-kill
PIDFile=/var/run/momenta-vpn.pid
RemainAfterExit=True
KillMode=process
#Restart=always
#RestartSec=180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment