mirror of
https://github.com/namibia/openvpn-install.git
synced 2025-01-22 20:08:25 +00:00
Fix service on Ubuntu 16.04
This commit is contained in:
parent
e2906fd5e4
commit
ef30d3c9df
@ -737,6 +737,11 @@ verb 3" >> /etc/openvpn/server.conf
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart openvpn-server@server
|
systemctl restart openvpn-server@server
|
||||||
systemctl enable 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
|
else
|
||||||
# Workaround to fix OpenVPN service on OpenVZ
|
# Workaround to fix OpenVPN service on OpenVZ
|
||||||
sed -i 's|LimitNPROC|#LimitNPROC|' /lib/systemd/system/openvpn\@.service
|
sed -i 's|LimitNPROC|#LimitNPROC|' /lib/systemd/system/openvpn\@.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user