From ef30d3c9dfa9f965420174d08a6bfc800ab04aa2 Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 23 Sep 2018 14:25:18 +0200 Subject: [PATCH] Fix service on Ubuntu 16.04 --- openvpn-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 0fe840e..cdb9d89 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -737,6 +737,11 @@ verb 3" >> /etc/openvpn/server.conf systemctl daemon-reload systemctl restart openvpn-server@server systemctl enable openvpn-server@server + elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04"]]; then + # On Ubuntu 16.04, we use the package from the OpenVPN repo + # This package uses a sysvinit service + systemctl enable openvpn + systemctl start openvpn else # Workaround to fix OpenVPN service on OpenVZ sed -i 's|LimitNPROC|#LimitNPROC|' /lib/systemd/system/openvpn\@.service