Page 1 of 1

OpenVPN in deamon mode - How to graceful disconnect?

Posted: Wed Feb 01, 2017 8:02 am
by dr34m
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 :)

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

Posted: Wed Feb 01, 2017 11:24 am
by TinCanTech
Simply:
$ kill -15 pid

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

Posted: Thu Feb 02, 2017 7:58 am
by dr34m
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?