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

Michael Biebl email at michaelbiebl.de
Thu Apr 25 09:54:12 BST 2019


Am 25.04.19 um 01:55 schrieb Norbert Preining:
> Package: systemd
> Version: 241-3
> Severity: important
> 
> Hi
> 
> it seems that the documentation of systemd is incorrect, or incomplete,
> as it states that
> 	suffix. In the unit file itself, the instance parameter may be referred to using "%i" and other
> 	specifiers, see below.
> 	(man page of systemd.unit)
> and down there %h is listed as home directory of the user.
> 
> We use a systemd unit file that has onedrive at .service
> 	ExecStart=/usr/bin/onedrive --monitor --confdir=/home/%i/.config/onedrive
> which works as expected. But the moment I change it to
> 	ExecStart=/usr/bin/onedrive --monitor --confdir=%h/.config/onedrive
> it breaks because %h is not expanded.

Looks like a duplicate of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868269

Can you attach the full .service file please.


-- 
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/172f097c/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list