On Fri, 05.12.14 14:13, arnaud gaboury (arnaud.gabo...@gmail.com) wrote:

> Dear all,
> 
> For the user services started by systemctl --user, I sometimes need to
> tell systemd some environment variables values.
> 
> For this purpose, I use drop-in configuration files (MyService.conf)
> in /etc/systemd/system/user@.service.d
> 
> I am wondering if there is another way to pass the variables values.
> I was thinking to some user directory like this :
> ~/.config/systemd/user@.service.d (does not work) or import one only
> file with all these variables values with this command at session
> start up: systemctl --import-environment FILE (does not work), or
> maybe something like systemctl --import-environment 'cat FILE'.

systemctl set-environment `cat FILE` should work, no?

Lennart

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

Reply via email to