Opened 8 years ago
Closed 8 years ago
#666 closed Bug / Defect (fixed)
Interactive service does not stop if openvpn sessions are running
Reported by: | Selva Nair | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | alpha 2.4 |
Component: | Generic / unclassified | Version: | OpenVPN git master branch (Community Ed) |
Severity: | Not set (select this one, unless your'e a OpenVPN developer) | Keywords: | |
Cc: | Heiko Hund |
Description
'sc stop OpenVPNServiceInteractive' should stop the service, but it continues running if any openvpn sessions are active when its stopped.
Openvpn process itself terminates (unless there are more than one active sessions) but the service reports "STOP PENDING" on query. In this state the service continues to honor new client connections. Once in this state, the only way to stop the service appears to be to kill it.
If there are no active openvpn sessions started by the service, "sc stop .." works without incident. This odd behavior is present from the initial commit a24dd2e31f196c76594666f37c130817402acb15
Change History (2)
comment:1 Changed 8 years ago by
Cc: | Heiko Hund added |
---|
comment:2 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for digging into this *and* sending a patch right away :-) - reading the patch and reading up the functions makes me believe I understand the change and that it's the right thing to do - finding the issue myself would have never worked out.
commit 239d09938b300f8eafa12bfb8c43373f0215f7bd
Author: Selva Nair
Date: Sun Mar 6 00:19:19 2016 -0500