Answer the question
In order to leave comments, you need to log in
Why does systemd start OpenVPN before the interfaces defined in /etc/network/interfaces are ready?
Greetings!
After upgrading to Ubuntu 16.04, OpenVPN does not start.
The problem is that systemd tries to start the service when the br0 interface defined in /etc/network/interfaces is not yet ready:
...
auto br0
iface br0 inet static
bridge_ports p9p1
bridge_fd 0
address 192.168.1.1
netmask 255.255.255.0
...
#!/bin/bash
#
ifconfig $1 up
brctl addif br0 $1
Answer the question
In order to leave comments, you need to log in
Check the file (this is fedora on ubuntu may be elsewhere) /lib/systemd/system/[email protected]
[Unit]
Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I
[Service]
PrivateTmp=true
Type=forking
PIDFile=/var/run/openvpn/%i.pid
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ - -config %i.conf
[Install]
WantedBy=multi-user.target
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question