[Bug 1450762] Re: AUTOSTART value is ignored in startup script

Martin Pitt martin.pitt at ubuntu.com
Wed May 27 08:48:21 UTC 2015


I tried to reproduce this in a fresh VM with:

sudo cp /usr/share/doc/openvpn/examples/sample-config-files/static-home.conf /etc/openvpn/client1.conf
sudo cp /usr/share/doc/openvpn/examples/sample-config-files/static-office.conf /etc/openvpn/client2.conf
sudo sed -i '/AUTOSTART.*"all"/ s/^#//' /etc/default/openvpn
sudo systemctl daemon-reload
sudo service openvpn restart

and it works as expected: "systemctl status openvpn@*" shows me that I
got openvpn at client1.service and openvpn at client2.service. Of course they
fail to start in my scenario as the example files use IP addresses
1.2.3.4 and similar, but the generator and startup works fine.

In your case openvpn at client.service looks strange -- do you actually
have a /etc/openvpn/client.conf file? This error message

May 1 11:45:39 ovpn-client[26561]: Options error: In [CMD-LINE]:1: Error
opening configuration file: /etc/openvpn/client.conf

sounds like it either exists and is invalid, or it does not exist. Can
you please give me the output of

  ls -lR /etc/openvpn/*.conf

?

** Changed in: openvpn (Ubuntu)
       Status: New => Incomplete

** Summary changed:

- AUTOSTART value is ignored in startup script
+ creates failing openvpn at client.service unit

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1450762

Title:
  creates failing openvpn at client.service unit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions



More information about the Ubuntu-server-bugs mailing list