[Bug 1450762] Re: creates failing openvpn@client.service unit
I found a solution for this and wanted to post in case someone else came across it. OpenVPN stopped using /etc/default/openvpn for defaults after switching to systemd, even though the file /etc/default/openvpn may still be there (As it is on Debian 9 still). To configure defaults for openvpn on systemd now, issue the command: sudo systemctl edit openvpn If you add the AUTOSTART="client1 client2" there, and save, then it should work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1450762 Title: creates failing openvpn@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
sudo apt-get purge openvpn sudo apt-get install openvpn fixed the problem this report can be closed. -- 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@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
For some reason commands: sudo /etc/init.d/openvpn start sudo /etc/init.d/openvpn restart are not working, but sudo systemctl daemon-reload sudo service openvpn restart are -- 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@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
For some reason commands: sudo /etc/init.d/openvpn start sudo /etc/init.d/openvpn restart are not working, but sudo systemctl daemon-reload sudo service openvpn restart are -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1450762 Title: creates failing openvpn@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
Well, I would have liked to know why it was failing, but I suppose the purging destroyed all the evidence now. Closing, thanks! ** Changed in: openvpn (Ubuntu) Status: Incomplete = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1450762 Title: creates failing openvpn@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
Well, I would have liked to know why it was failing, but I suppose the purging destroyed all the evidence now. Closing, thanks! ** Changed in: openvpn (Ubuntu) Status: Incomplete = Invalid -- 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@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
Well, this part of code was never reached when invoking sudo /etc/init.d/openvpn start case $1 in start) log_action_begin_msg Starting $DESC # first create /run directory so it's present even # when no VPN are autostarted by this script, but later # by systemd openvpn@.service mkdir -p /run/openvpn # autostart VPNs if test -z $2 ; then # check if automatic startup is disabled by AUTOSTART=none if test x$AUTOSTART = xnone -o -z $AUTOSTART ; then log_warning_msg Autostart disabled, no VPN will be started. exit 0 fi if test -z $AUTOSTART -o x$AUTOSTART = xall ; then # all VPNs shall be started automatically for CONFIG in `cd $CONFIG_DIR; ls *.conf 2 /dev/null`; do NAME=${CONFIG%%.conf} log_daemon_msg Autostarting VPN '$NAME' start_vpn done else -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1450762 Title: creates failing openvpn@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
Well, this part of code was never reached when invoking sudo /etc/init.d/openvpn start case $1 in start) log_action_begin_msg Starting $DESC # first create /run directory so it's present even # when no VPN are autostarted by this script, but later # by systemd openvpn@.service mkdir -p /run/openvpn # autostart VPNs if test -z $2 ; then # check if automatic startup is disabled by AUTOSTART=none if test x$AUTOSTART = xnone -o -z $AUTOSTART ; then log_warning_msg Autostart disabled, no VPN will be started. exit 0 fi if test -z $AUTOSTART -o x$AUTOSTART = xall ; then # all VPNs shall be started automatically for CONFIG in `cd $CONFIG_DIR; ls *.conf 2 /dev/null`; do NAME=${CONFIG%%.conf} log_daemon_msg Autostarting VPN '$NAME' start_vpn done else -- 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@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
this part of code was never reached when invoking sudo /etc/init.d/openvpn start Yes, it's not supposed to. openvpn ships systemd units, so the init.d script isn't getting run (and if you try to call it manually it diverts to essentially calling systemctl start openvpn). -- 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@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
this part of code was never reached when invoking sudo /etc/init.d/openvpn start Yes, it's not supposed to. openvpn ships systemd units, so the init.d script isn't getting run (and if you try to call it manually it diverts to essentially calling systemctl start openvpn). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1450762 Title: creates failing openvpn@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1450762] Re: creates failing openvpn@client.service unit
sudo apt-get purge openvpn sudo apt-get install openvpn fixed the problem this report can be closed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1450762 Title: creates failing openvpn@client.service unit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/1450762/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs