[systemd-devel] %j and symbolic links to unit files.

Carlo Wood carlo at alinoe.com
Fri May 2 16:39:37 UTC 2025


Although nobody reacted; it seems trivial that this SHOULD work.
And since it doesn't (as you already guessed) this is bug.

Therefore I went ahead took the time to write a bug report:
https://github.com/systemd/systemd/issues/37329

On Thu, 1 May 2025 00:14:04 +0200
Carlo Wood <carlo at alinoe.com> wrote:

> If I have a template unit foo at .service
> and I have a symlink in /etc/systemd/system/
> foo-bar at .service -> /usr/lib/systemd/system/foo at .service
> 
> 1) is adding a symbolic link like this supported?
> 2) is using %j inside foo at .service supported in this case
> (aka, allowed and it should work)?
> 
> If then I start this alias with
> sudo systemctl start foo-bar at instance.service
> 
> 3) what should %j expand to? (assuming 'yes' to 2) above).


More information about the systemd-devel mailing list