Hi all,
I need to schedule disconnection of my openvpn client using command line on windows platform.
If I kill process with "
taskkill.exe /F /IM openvpn.exe" command, openvpn exit but following execution generate initialization error
WARNING: Failed to renew DHCP IP address lease on TAP-Windows adapter: The semaphore timeout period has expired. (code=121)
TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
If I manually use F4 on keyboard into windows-prompt, disconnection of client is OK and I read on my log:
SIGTERM received, sending exit notifica
closing tun tap interface
To solve my problem I can send SIGTERM signal using shell but I don't know to do it
Can you help me please?
Thanks