Sorry, this was meant to go to the mailing list 2016-07-19 12:45 GMT+02:00 Michael Biebl <mbi...@gmail.com>: > 2016-07-19 12:06 GMT+02:00 Lennart Poettering <mzerq...@0pointer.de>: >> On Tue, 19.07.16 00:32, Michael Biebl (mbi...@gmail.com) wrote: >>> settings support which specifiers. >>> But maybe I just missed it. >> >> It is supported. > > Ok, thanks > > >> I figure instead of documenting which options support specifier >> expansion and which ones do not we should rather fix all options to >> support it... >> >>> I was wondering if I can use >>> >>> ConditionPathExists=/dev/%i >>> >>> Seems like this would e.g. be useful in getty@.service, which currently has >>> ConditionPathExists=/dev/tty0 >>> >>> This seems rather arbitrary to hard-code this to tty0 >> >> "tty0" is a nice way to detect whether the VC system is available. The >> instances should be cleanly skipped if the VC system is not available >> (because compiled out of the kernel, or because of a container >> env). If the specific tty the service is started for is missing we >> shouldn't eat up the error however, but rightly fail. > > Apparently this check is too simplistic though. LXC for example > provides tty1-tty4 > > And starting at getty on a non-existing tty1 simply makes it fail and > systemd restarting it (due to Restart=always) > That is not nice. > >> Hope that makes sense? > > Well, I think it would be better if we used > ConditionPathExists=/dev/%i in getty@.service > Makes a lot more sense to me, tbh. > > > > -- > Why is it that all of the instruments seeking intelligent life in the > universe are pointed away from Earth?
-- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel