On Fri, 05.12.14 14:13, arnaud gaboury ([email protected]) 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/[email protected] > > I am wondering if there is another way to pass the variables values. > I was thinking to some user directory like this : > ~/.config/systemd/[email protected] (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 [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
