Created
June 29, 2018 10:57
-
-
Save cvcore/057be5b7e5993c4672ca53bc5d468496 to your computer and use it in GitHub Desktop.
Custom VPN systemd unit (place under /etc/systemd/system/custom-vpn.service)
This file contains 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
[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