[This was previously reported by someone else at https://bugzilla.novell.com/show_bug.cgi?id=758427 but they did not choose to report it upstream] I am creating a systemd template file used to start various instances of my service. Each instance requires its own configuration file. I wanted to use: ConditionPathExists=/etc/tinc/%I/tinc.conf However, ConditionPathExists (and, I presume, the other conditions) do not use the %-specifiers. If this is deliberate, please consider changing the decision as the conditions in a template are likely to often be dependent on the particular instance being created (the earlier bug report has an example of checking a particular tty device exists).
ConditionPathExists= is part of the general unit configuration options. According to the "unit" man page, only the [Install] options accept "%" specifiers [1]. Additionally, for services, ExecStart= accepts them [2]. Because this seems like a reasonable thing to add, though, I've updated this issue to be an RFE. [1] http://www.freedesktop.org/software/systemd/man/systemd.unit.html#%5BInstall%5D%20Section%20Options [2] http://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStart=
We actually do honour specifiers in conditions in recent systemd versions.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.