Page 1 of 1

how to restart openvpn server

Posted: Tue Oct 12, 2021 5:45 am
by yawnmoth
I'm using the "OpenVPN Access Server" AMI EC2 instance from AWS.

According to viewtopic.php?p=12848#p12848 /etc/init.d/openvpn restart should restart OpenVPN server on Debian (I'm running Ubuntu, which is Debian) but when I try that I get this:

Code: Select all

bash: /etc/init.d/openvpn: No such file or directory
When I do service openvpn restart (which should work on CentOS per the above post) I get this:

Code: Select all

Failed to restart openvpn.service: Unit openvpn.service not found.
I did locate openvpn but got 3,860 entries back per locate openvpn | wc -l...

If it helps, here's the banner that I see when I login:

Code: Select all

Welcome to OpenVPN Access Server Appliance 2.7.5

  System information as of Tue Oct 12 06:00:15 UTC 2021

  System load:  0.0               Users logged in:      0
  Usage of /:   75.6% of 7.69GB   IP address for eth0:  172.31.7.187
  Memory usage: 42%               IP address for as0t0: 172.27.224.1
  Swap usage:   0%                IP address for as0t1: 172.27.232.1
  Processes:    103

Last login: Tue Oct 12 04:04:04 2021 from 70.124.147.35
So how do I restart OpenVPN Server?

I mean, I guess I could just reboot the server but is there a way to restart OpenVPN without rebooting the entire machine?

Re: how to restart openvpn server

Posted: Thu Oct 14, 2021 11:39 am
by openvpn_inc
Hello yawnmoth,

If you're using OpenVPN Access Server, the correct command on most platforms is:
service openvpnas restart

Kind regards,
Johan