0

I Have multiple instances of OpenVPN running. In Ubuntu 14.04 we could control and get status by using

/etc/init.d/openvpn status server4

which returns one of these outputs:

"* VPN 'server4' is running" OR "* VPN 'server4' is not running"

witch gives me an exit code of 0 or 1.

How do I get this to work in Ubuntu 16.04?

1 Answers1

0

SystemV worked on old versions of Ubuntu, Debian and Centos Linux operating systems. Now Systemd is used. New command is:

systemctl status openvpn@server4.service 
Mikhail Khirgiy
  • 2,003
  • 9
  • 7