OpenVPN in deamon mode - How to graceful disconnect?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
dr34m
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 01, 2017 7:56 am

OpenVPN in deamon mode - How to graceful disconnect?

Post by dr34m » Wed Feb 01, 2017 8:02 am

Hi Guys,
if i start openvpn like

openvpn --config /some/path/somefileconfig --daemon

it's work nice (i have user/password stored etc)

so, if i want to stop connection i must kill the process.. there is a way to say to openvpn in daemon mode to graceful disconnect?

ty :)

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN in deamon mode - How to graceful disconnect?

Post by TinCanTech » Wed Feb 01, 2017 11:24 am

Simply:
$ kill -15 pid

dr34m
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 01, 2017 7:56 am

Re: OpenVPN in deamon mode - How to graceful disconnect?

Post by dr34m » Thu Feb 02, 2017 7:58 am

TinCanTech wrote:Simply:
$ kill -15 pid
ty man

another question.. how i can say to openvpn in deamon mode to log me te output in some file?

Post Reply