Doing as the OP suggested does work.  the following modification of
lib/systemd/system/openvpn@.service allows the AWS xenial instance to
reboot with openvpn service enabled

$ diff -u /lib/systemd/system/openvpn@.service 
roles/openvpn_server/files/openvpn@.service
--- /lib/systemd/system/openvpn@.service        2016-02-02 06:33:30.000000000 
-0600
+++ roles/openvpn_server/files/openvpn@.service 2016-06-27 15:55:19.839586907 
-0500
@@ -3,6 +3,7 @@
 PartOf=openvpn.service
 ReloadPropagatedFrom=openvpn.service
 Before=systemd-user-sessions.service
+After=network.target network-online.target 
 Documentation=man:openvpn(8)
 Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
 Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1580356

Title:
  OpenVPN causes reboot failure on Xenial in AWS

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to