Opened 6 years ago

Closed 6 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 6 years ago by Gert Döring

Cc: Heiko Hund added

comment:2 Changed 6 years ago by Gert Döring

Resolution: fixed
Status: newclosed

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

Fix interactive service ignoring stop command if openvpn is running

Signed-off-by: Selva Nair <selva.nair@…>
Acked-by: Gert Doering <gert@…>
Message-Id: <1457241559-23374-1-git-send-email-selva.nair@…>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11317
Signed-off-by: Gert Doering <gert@…>

Note: See TracTickets for help on using tickets.