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
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
systemctl set-environment `cat FILE` should work, no?
Lennart
I am messing with it.
$ systemctl --user set-environment toto=3 tata=4
$ systemctl --user show-environment
..
tata=4
toto=3
-
Now:
--
$
On 05/12/14 16:13, arnaud gaboury wrote:
Now:
--
$ echo 'lolo=4 lala=5' | tee test
lolo=4 lala=5
$ systemctl --user set-environment 'cat test'
Failed to set environment: Invalid environment assignments
---
No idea what I do
$ systemctl --user set-environment `cat test`
Damned. Thank you
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
On Fri, Dec 5, 2014 at 5:20 PM, Daniele Nicolodi dani...@grinta.net wrote:
On 05/12/14 16:13, arnaud gaboury wrote:
Now:
--
$ echo 'lolo=4 lala=5' | tee test
lolo=4 lala=5
$ systemctl --user set-environment 'cat test'
Failed to set environment: Invalid
В Mon, 10 Nov 2014 20:55:12 +0100
arnaud gaboury arnaud.gabo...@gmail.com пишет:
As for the variable, two more wishes (not a big deal yet):
- in units, why not add a specifier reflecting $XDG_CONFIG_HOME
Hmm, when we start with that, then I figure people want the other XDG
dirs as well,
On Fri, 07.11.14 20:40, arnaud gaboury (arnaud.gabo...@gmail.com) wrote:
We could probably at least open up DefaultEnvironment= to specifier
expansion, so that %t would work the same way as in unit files. I
added a TODO list item for this now.
Thank you so much This refers to
As for the variable, two more wishes (not a big deal yet):
- in units, why not add a specifier reflecting $XDG_CONFIG_HOME
Hmm, when we start with that, then I figure people want the other XDG
dirs as well, soon...
Anyway, what's the usecase for this?
Just laziness when writing service
We could probably at least open up DefaultEnvironment= to specifier
expansion, so that %t would work the same way as in unit files. I
added a TODO list item for this now.
Thank you so much This refers to the recent flame about systemd.
As a newbie, I can testify the dev team is doing
On Fri, 31.10.14 17:16, arnaud gaboury (arnaud.gabo...@gmail.com) wrote:
For systemd be aware of certain environment variables, I usually use a
drop-in config in /etc/systemd/system/user@service.d. This way, I can
see the varibale when running
$ systemctl --user show-environment
Now I am
11 matches
Mail list logo