Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2020 11:26:46 -0600
From:      Kyle Evans <kevans@freebsd.org>
To:        Ian Lepore <ian@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>,  svn-src-head <svn-src-head@freebsd.org>, Andrew Gierth <andrew@tao11.riddles.org.uk>, sigsys@gmail.com
Subject:   Re: svn commit: r357566 - head
Message-ID:  <CACNAnaHu=T9N5S6DKdYN9FjRBb%2BASvEU7XPVC6x3jDZdkjtw1g@mail.gmail.com>
In-Reply-To: <1c19eca5b40aa7b70b0c18b7b52b540671cc50dd.camel@freebsd.org>
References:  <202002050443.0154hwPl091233@repo.freebsd.org> <1c19eca5b40aa7b70b0c18b7b52b540671cc50dd.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 5, 2020 at 11:21 AM Ian Lepore <ian@freebsd.org> wrote:
>
> On Wed, 2020-02-05 at 04:43 +0000, Kyle Evans wrote:
> > Author: kevans
> > Date: Wed Feb  5 04:43:58 2020
> > New Revision: 357566
> > URL: https://svnweb.freebsd.org/changeset/base/357566
> >
> > Log:
> >   Add RELNOTES entry for various daemons pulling in environment variables
> >
> > Modified:
> >   head/RELNOTES
> >
> > Modified: head/RELNOTES
> > ==============================================================================
> > --- head/RELNOTES     Wed Feb  5 04:35:54 2020        (r357565)
> > +++ head/RELNOTES     Wed Feb  5 04:43:58 2020        (r357566)
> > @@ -10,6 +10,12 @@ newline.  Entries should be separated by a newline.
> >
> >  Changes to this file should not be MFCed.
> >
> > +r357560-r357565:
> > +     init(8), service(8), and cron(8) will now adopt user/class environment
> > +     variables (excluding PATH, by default, which will be overwritten) by
> > +     default.  Notably, environment variables for all cron jobs and rc
> > +     services can now be set via login.conf(5).
> > +
> >
>
> Unfortunately, the utility of this cool series of changes is mostly
> destroyed by the fact that PATH is the variable that could be most
> usefully set in login.conf for running daemons, specifically because it
> is set in 3 separate places now.
>

It is (and has been) set in each of them respectively, but the
submitter (along with sigsys@gmail.com) have some idea to accept a
hint in cron (and perhaps the others) from login.conf that it should
accept PATH as well unless it's been explicitly set in the executing
job.

I've CC'd these two so they can expand on that or discuss as needed.

Thanks,

Kyle Evans



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaHu=T9N5S6DKdYN9FjRBb%2BASvEU7XPVC6x3jDZdkjtw1g>