Hi,

I'm facing a strange problem in OpenVPN which could be related to
systemd but at this point I was not able to figure this out.

I'm running the stable version of Debian Jessie with the latest version
of systemd and OpenVPN:
# dpkg -l openvpn systemd
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version         Architecture    Description
+++-=====================-===============-===============-================================================
ii  openvpn               2.3.4-5         amd64           virtual
private network daemon
ii  systemd               215-17          amd64           system and
service manager
# uname -a
Linux jessie-amd64 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-2
(2015-04-13) x86_64 GNU/Linux
# cat /etc/debian_version
8.0

In Debian everything which matches 'ls /etc/openvpn/*.conf' is a config
and an instance of OpenVPN should be tried to be started with. At least
in Wheezy with initV this behavior was the default.

We have a config named "server.conf". If we rename this config to
"openvpn.conf" and restart/reload the service it is not coming up again.
For some reasons the old name of the config got cached somewhere and
systemd is trying to start OpenVPN with this file.
Information for this is stored here:
==> /var/log/daemon.log <==
May 18 12:20:39 jessie-amd64 ovpn-server[1894]: Options error: In
[CMD-LINE]:1: Error opening configuration file: /etc/openvpn/server.conf
And an strace on systemd itself shows this:
execve("/usr/sbin/openvpn", ["/usr/sbin/openvpn", "--daemon",
"ovpn-server", "--status", "/run/openvpn/server.status", "10", "--cd",
"/etc/openvpn", "--config", "/etc/openvpn/server.conf"], [/* 2 vars */]) = 0

A reboot will fix this and he is starting it again. This bug makes it
also impossible to setup a second instance of OpenVPN beside a running
configuration. He is just ignoring that config file unless you reboot
the server.

If someone can tell me which package is causing this error I will open a
bug report against it. :)

Cheers
Flo

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to