On my Ubuntu 16.04 server, I have the OpenVPN service running as the user nobody. How can I restart the service or reload the config file for the service using, for instance, systemctl?

An openvpn process is running, but I don't know how to access it.

310 nobody    20   0   44440   3184   1968 S  0.0  0.3   1263:30 openvpn

The command su nobody does not work because no password is set. Is there an alternative?


Try this, I've noticed that restart doesn't work for me.

sudo systemctl stop openvpn@server
sudo systemctl enable openvpn@server.service
sudo systemctl start openvpn@server

OpenVPN is a templatized service under systemd. The services are named openvpn@config.service. So you should restart your /etc/openvpn/myvpn.conf instance with:

systemctl restart openvpn@myvpn.service
  • The trouble is using systemctl status openvpn@myvpn.service doesn't reveal an active service when doing this under my login or under root user, as I assume the service is running under the nobody user – sumade Aug 20 '17 at 22:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.