You are not logged in.

#1 2013-07-01 21:15:38

cyker
Member
Registered: 2009-05-30
Posts: 86

openvpn cannot be restarted using systemd

To reproduce:

systemctl   start openvpn@foo.service
systemctl restart openvpn@foo.service

The second command will fail because the previous instance isn't stopped.

The relevant part in openvpn@.service file may be:

Type=forking
ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i

How does systemd kill an openvpn instance if the child process doesn't write its pid (given there is no ExecStop command)?


.

Offline

Board footer

Powered by FluxBB