Last active
December 3, 2016 05:07
-
-
Save Gowee/05171d070d00f9735505d9ec6d913c0d to your computer and use it in GitHub Desktop.
systemd service script for pptpclient
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
# Modified from OpenVPN systemd service script. | |
[Unit] | |
Description=PPTP Client connection to %I | |
After=syslog.target network.target network-online.target | |
[Service] | |
PrivateTmp=true | |
Type=forking | |
ExecStart=/usr/bin/pon %i persist | |
PIDFile=/run/ppp0.pid | |
#CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH | |
#LimitNPROC=10 | |
DeviceAllow=/dev/null rw | |
DeviceAllow=/dev/ppp rw | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment