Last active
March 16, 2024 21:14
-
-
Save Snawoot/fbc263ce97744bbb773e9514d85ff7a9 to your computer and use it in GitHub Desktop.
Fixes for openvswitch-ipsec to make it work on recent Ubuntu
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
# /lib/systemd/system/openvswitch-ipsec.service | |
[Unit] | |
Description=Open vSwitch IPsec daemon | |
Requires=openvswitch-switch.service | |
After=openvswitch-switch.service | |
[Service] | |
Type=forking | |
PIDFile=/run/openvswitch/ovs-monitor-ipsec.pid | |
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ | |
--ike-daemon=strongswan start-ovs-ipsec | |
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop-ovs-ipsec | |
[Install] | |
WantedBy=multi-user.target | |
# /etc/systemd/system/openvswitch-ipsec.service.d/override.conf | |
[Service] | |
Environment="OVS_PKGDATADIR=/usr/share/openvswitch" | |
Environment="OVS_RUNDIR=/var/run/openvswitch" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These environment variables fix errors like:
and