Am 25.06.20 um 20:25 schrieb Ede Wolf: > Am 25.06.20 um 14:30 schrieb Lennart Poettering: >> Nah, unless you write a shell or templating language I doubt variable >> expansion is a good thing. > > I am aware, that discussion here is futile, but this is contradictious, > because: > > [Unit] > Description=test service > > [Service] > User=%i > Type=oneshot > > ExecStart=/bin/sh -c "echo helloWorld > /tmp/test.txt" > > [Install] > WantedBy=multi-user.target > > > Does work, so %i works, $SOMETHING not. Different naming, different way > of invocation, I am aware of that, but in general it still the usage of > variables. And the likes of %H, %m or %v are some form of environment, > aren't they? no, they aren't >> If you want a shell, use a shell. > > Given the dominance of systemd, this is only in parts realistic. This is > not meant to critisize systemd itself, just this rather bold statement. > As shown above, variables (specifiers, whatever you call them) are not > shell specific what exactly stands in your way to use ExtecStart=/usr/local/bin/myscript.sh? _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel