how to restart openvpn server

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
yawnmoth
OpenVpn Newbie
Posts: 2
Joined: Tue Oct 12, 2021 2:14 am

how to restart openvpn server

Post by yawnmoth » Tue Oct 12, 2021 5:45 am

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?

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: how to restart openvpn server

Post by openvpn_inc » Thu Oct 14, 2021 11:39 am

Hello yawnmoth,

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

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply