Re: Some wishes for s6-log & s6-envdir

2015-02-27 Thread Laurent Bercot
On 26/02/2015 19:37, Olivier Brunel wrote: saying I feel this option makes sense on its own, not just to reduce the number of executable to call, but because s6-envdir is used to define an environment, having a way to guarantee what said environment will be seems a good/logical thing. Yes, it

Re: Some wishes for s6-log & s6-envdir

2015-02-26 Thread Olivier Brunel
On 02/26/15 18:43, Laurent Bercot wrote: > > I fully agree with Colin on both points. > > - For the s6-envdir thing: all the tools already exist to perform > what you want. Sure, adding an option isn't hard, and would make > things convenient, but it's a slippery slope. I try to provide > tools

Re: Some wishes for s6-log & s6-envdir

2015-02-26 Thread Laurent Bercot
I fully agree with Colin on both points. - For the s6-envdir thing: all the tools already exist to perform what you want. Sure, adding an option isn't hard, and would make things convenient, but it's a slippery slope. I try to provide tools that perform basic operations and rely on users to co

Re: Some wishes for s6-log & s6-envdir

2015-02-25 Thread Colin Booth
On Wed, Feb 25, 2015 at 4:32 PM, Olivier Brunel wrote: > On 02/26/15 01:06, Colin Booth wrote: >> On Wed, Feb 25, 2015 at 3:06 PM, Olivier Brunel wrote: >> /bin/emptyenv -p s6-envdir /path/to/env exec >> should be good enough. It's still an extra command over what you're >> looking for, but as lo

Re: Some wishes for s6-log & s6-envdir

2015-02-25 Thread Olivier Brunel
On 02/26/15 01:06, Colin Booth wrote: > On Wed, Feb 25, 2015 at 3:06 PM, Olivier Brunel wrote: >> Hi, >> >> Sorry, no bug reports; Couple of feature wishes though :p >> >> E.g. I have a script that I need to run, but I don't know what the >> original environment is. Right now I have it start with:

Re: Some wishes for s6-log & s6-envdir

2015-02-25 Thread Colin Booth
On Wed, Feb 25, 2015 at 3:06 PM, Olivier Brunel wrote: > Hi, > > Sorry, no bug reports; Couple of feature wishes though :p > > E.g. I have a script that I need to run, but I don't know what the > original environment is. Right now I have it start with: > /bin/emptyenv /bin/s6-envdir /path/to/env /

Some wishes for s6-log & s6-envdir

2015-02-25 Thread Olivier Brunel
Hi, Sorry, no bug reports; Couple of feature wishes though :p - s6-envdir: an option to clear the environment first would be nice, so we know the environment that it will execute into is coming from envdir only, without possible "leftovers" - s6-envdir: also, an option to look for prog (to exec