Re: systemd user unit - how to prepare environment?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mi, 12.09.18 10:15, Peter Hoeg (peter@xxxxxxxx) wrote:

> Hi,
> 
> > > > So my question is, where to init variables for user units?
> > > > I woluld like to have possiblity to set them as not only as fixed
> > > > strings
> > > >
> > > > (i.e. I would to have PATH=$PATH:xxx)
> > 
> > You can add them to ~/.config/systemd/user.conf in the Environment=
> > field in the [Manager] section, see systemd-system.conf(5).x
> 
> How does this compare to man 5 environment.d ?

You can use that too. Difference is mainly that user.conf is what
systemd itself reads.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux