Message-ID: <555F9165.7020606@...1147...> Date: Fri, 22 May 2015 22:28:21 +0200 From: Jan Just Keijser MIME-Version: 1.0 References: <555BF270.3090706@...1147...> <1432319769-26663-1-git-send-email-gert@...1296...> In-Reply-To: <1432319769-26663-1-git-send-email-gert@...1296...> Subject: Re: [Openvpn-devel] [PATCH] Document differences between --up-restart and --up in openvpn.8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Gert Doering , openvpn-devel@lists.sourceforge.net On 22/05/15 20:36, Gert Doering wrote: > See trac #93 and the discussion starting with <555BF270.3090706@...1147...> > on the openvpn-devel mailing list. > > Signed-off-by: Gert Doering > --- > doc/openvpn.8 | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/doc/openvpn.8 b/doc/openvpn.8 > index b9eee0d..ef87bb7 100644 > --- a/doc/openvpn.8 > +++ b/doc/openvpn.8 > @@ -1817,6 +1817,12 @@ has been specified, the up script will be called with > .I restart > as the last parameter. > > +NOTE: on restart, OpenVPN will not pass the full set of environment > +variables to the script. Namely, everything related to routing and > +gateways will not be passed, as nothing needs to be done anyway - all > +the routing setup is already in place. Additionally, the up\-restart > +script will run with the downgraded UID/GID settings (if configured). > + > The following standalone example shows how the > .B \-\-up > script can be called in both an initialization and restart context. ACK JJK