It would be nice if in a next tinc release you'll add some service variables tinc propagates to its scripts. So for example you can define in tinc.conf env variables like:
SERVICE1= ... SERVICEn= and tinc will propagates all SERVICEx Variables found in tinc.conf to all scripts it calls. One can use theoretically infinite Env Var for custom behavior (like custom debug messages, conditional iptables rules load or something else), without lot of coding for you. Using a multi separated scripts called on state change, as you choice, is right, but make difficult to set common env var if you don't make a tinc inside mechanism like that. This is only a suggestion, right ? Thank you Best Regards Roberto -----Original Message----- From: tinc [mailto:[email protected]] On Behalf Of Guus Sliepen Sent: lunedì 25 gennaio 2016 17.23 To: [email protected] Subject: Re: Persistent tun/tap On Mon, Jan 25, 2016 at 03:49:44PM +0000, mlist wrote: > I read documentation about env variables, but those variables are all > internal variables tinc inject about its component state/name, how can for > example I can tell tinc to send $DEBUG state variable to each stage so I can > write on system log custom messages in different stages ? It'd be very > useful, instead of defining same variable on each different standard script > (script scope variable). Tinc only sets those environment variables listed in the documentation. There is no $DEBUG variable or anything similar. -- Met vriendelijke groet / with kind regards, Guus Sliepen <[email protected]> _______________________________________________ tinc mailing list [email protected] http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
