]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Return process id of openvpn from interactive service to client
authorSelva Nair <selva.nair@gmail.com>
Fri, 24 Jun 2016 02:50:56 +0000 (22:50 -0400)
committerGert Doering <gert@greenie.muc.de>
Fri, 24 Jun 2016 06:24:07 +0000 (08:24 +0200)
commite4c9bbe6c367132c8570fe747d85a6075ff04245
tree01eaf1ca14a1f544117d01e9afd59ed735cfd732
parentd023fb661cca578dc977c9bd5e7d681de15e38a3
Return process id of openvpn from interactive service to client

- The process id is returned as a message formatted in the same manner
  as error messages from the service to the client: i.e., a three-line
  message with error number formatted as 0x%08x on line 1, followed by
  the PID in format 0x%08x on line 2 and a description that reads as
  "Process ID" on line 3. Error number is set to zero to indicate
  this is an informational message.

This provides a way for service clients to check the status of openvpn
and terminate it without needing management interface or exit event.
Useful when the interactive service is used from a launch script, or
to force-terminate openvpn from the GUI if/when needed.

v2 changes: format of the message changed as described above.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1466736656-27501-1-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11984
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c