OpenVPN in deamon mode - How to graceful disconnect?

How to customize and extend your OpenVPN installation.
dr34m
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 01, 2017 7:56 am

OpenVPN in deamon mode - How to graceful disconnect?

Postby 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 :)

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 2111
Joined: Fri Jun 03, 2016 1:17 pm

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

Postby 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?

Postby 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?


Return to “Scripting and Customizations”

Who is online

Users browsing this forum: No registered users and 1 guest