Systemctl not recognizing openvpn service file.

October 24, 2017 952 views
VPN Ubuntu


I am attempting to setup a VPN server on Ubuntu 16.04 using a Droplet. I followed this tutorial "" here. I did everything exactly as given, however when I tried to use sytemctl to start openvpn, I found out systemd is not installed and server is running with Upstart. Since I am not too familiar with this, I downloaded systemd for Ubuntu 16.04. However, now running $ systemctl start openvpn@servername gives me the error that no such file is found. Running $ systemctl status openvpn gives me the same error in the Loaded section. I check /lib/systemd/system/ and no openvpn service file exists. How can I get sytemctl to recognize openvpn?

1 Answer

You can simply manage the service via init.d (/etc/init.d/openvpn restart)
It seems you don't have systemctl configuration files for openvpn yet.
Reading this article surely can help you to create the required files for systemctl

Have another answer? Share your knowledge.