[systemd-devel] Is %i supported in Condition?
Michael Biebl
mbiebl at gmail.com
Mon Jul 18 22:32:47 UTC 2016
Hi,
the systemd.unit man page is not quite clear on this, i.e. which
settings support which specifiers.
But maybe I just missed it.
I was wondering if I can use
ConditionPathExists=/dev/%i
Seems like this would e.g. be useful in getty at .service, which currently has
ConditionPathExists=/dev/tty0
This seems rather arbitrary to hard-code this to tty0
It would make much more sense to actually test for the device which we
try to start the getty on.
Regards,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
More information about the systemd-devel
mailing list