This forum is for admins who are looking to build or expand their OpenVPN setup.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
ScKaSx444
- OpenVpn Newbie
- Posts: 6
- Joined: Mon May 16, 2011 5:05 am
Post
by ScKaSx444 » Tue Jun 07, 2011 11:46 pm
Hi All,
I am trying to debug my configuration files for a client-server setup, where (client=my laptop, Windows 7) and (server=NAS hard drive, Linux). When I make changes to the server configuration I would like to restart the OpenVPN server. To do this is it okay to just run from the command line:
It is not necessary to power cycle the hard drive, correct? I appreciate the help.
-
Bebop
- Forum Team
- Posts: 301
- Joined: Wed Dec 15, 2010 9:24 pm
Post
by Bebop » Wed Jun 08, 2011 7:37 am
Power cycle is definitely not necessary. The exact method you use will depend on your OS, and whether you start as a service or not.
Centos service:
Debian service:
In your case:
are you stopping the old instance first? (ctrl+c)
If yes, then you are doing all that is required. Nothing further required.
The cure for boredom is curiosity
-
ScKaSx444
- OpenVpn Newbie
- Posts: 6
- Joined: Mon May 16, 2011 5:05 am
Post
by ScKaSx444 » Thu Jun 16, 2011 5:08 pm
Hi Bebop,
Thanks for the response, great name btw as it was also a great show.
I read about stopping the service with ctrl-c but I can't tell if that does anything when I do that. Can I check 'jobs' or 'processes' in linux to see if it is/isn't running in the background? Does linux have a restart function like with Debian or Centos?
Thx again!
-
janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
-
Contact:
Post
by janjust » Fri Jun 17, 2011 7:37 am
this depends on your linux distro; the centos+debian scripts are wrappers around the openvpn command itself; if openvpn is launched from the command line without using 'deamon' then a CTRL+C is sufficient; if openvpn is daemonized you can find the processes using
a quick&dirty way to kill all openvpn processes is
but again, this depends a bit on the linux distro used on the NAS box.
-
david01
- OpenVpn Newbie
- Posts: 1
- Joined: Thu Jun 03, 2021 2:57 pm
Post
by david01 » Thu Jun 03, 2021 3:00 pm
to restart the service
if you on Redhat or CentOS
[root@localhost ~]# systemctl list-units --type service //to check service name
[root@localhost ~]# systemctl status openvpn-server@server.service // for me the service is "openvpn-server@server.service"
[root@localhost ~]# systemctl restart openvpn-server@server.service // to restart the service
i hope that will help