Bug#927911: systemd: Does not expand %h identifier in ExecStart

Michael Biebl biebl at debian.org
Thu Apr 25 10:52:29 BST 2019


Am 25.04.19 um 11:33 schrieb Michael Biebl:
> Am 25.04.19 um 11:28 schrieb Michael Biebl:
>> Thanks. So with the above, what you should get is that %h is resolved to
>> /root, as you run that service as a system service. Or is %h not
>> expanded at all?
> 
> Actually, I think systemd resolves %h for PID 1 to '/'. Would need to
> double check though.
> 

Re-reading the systemd.unit man page, it says for %u and %h that it
resolves to the root user for the systemd manager instance.
While this correctly describes the behaviour, it could be a bit clearer,
documenting that setting `User=` has no effect.
I've filed https://github.com/systemd/systemd/issues/12389


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190425/b21e4761/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list