On Sun, 31 Oct 2004, Mathias Sundman wrote:

> Hi James and everyone else,
> 
> I'm working on a patch to add events for the other unix signals. I want 
> this because I want the GUI to have the same possibility to send openvpn 
> signals like you have in unix or when running from the console.
> 
> While working on this I think I either found a bug or I've missunderstood 
> something.
> 
> What is the purpose of beeing able to set the exit_event initial state 
> with the --service option?

You almost always want to set initial state to 0.

The only reason to set it to 1 is to force OpenVPN to exit with an error 
if the event object does not already exist.

This works because the initial state is only used by the process which 
creates the event for the first time.

So it is a good way to make the startup of an openvpn process be
conditional on the exit event having been pre-created by a controlling
service.

James


Reply via email to