Skip to content

Instantly share code, notes, and snippets.

@pessom
Created August 8, 2017 15:10
Show Gist options
  • Select an option

  • Save pessom/91aece7c270f0f0d919b5b2ae9498738 to your computer and use it in GitHub Desktop.

Select an option

Save pessom/91aece7c270f0f0d919b5b2ae9498738 to your computer and use it in GitHub Desktop.
Start xl2tpd with systemd
[Unit]
Description=IPsec connect
After=network.target racoon.service
[Service]
Type=simple
ExecStart=/usr/sbin/xl2tpd -D -p /var/run/xl2tpd.pid -c /etc/xl2tpd/xl2tpd.conf
Restart=on-abort
PIDFile=/var/run/xl2tpd.pid
[Install]
WantedBy=multi-user.target
@Firefishy
Copy link

Might require a:

ExecStartPre=/bin/mkdir -p /var/run/xl2tpd/

@pessom
Copy link
Author

pessom commented Jul 29, 2021

Might require a:

ExecStartPre=/bin/mkdir -p /var/run/xl2tpd/

in this case no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment