Am 11.02.2014 00:32, schrieb Michael Biebl: > I also wonder why the following check was added: > > ExecStartPre=/usr/bin/test -c /dev/null > > Why is this needed? Seems rather odd to me. With devtmpfs being > mandatory (in systemd/udev) nowadays, /dev/null is guaranteed to exist. > Do you remember why this check was added? Afaics it doesn't seem > necessary anymore nowadays. If you really want to keep this check, you might consider using a Condition test [1] like this: [Unit] ConditionPathExists=/dev/null ... Granted, this doesn't check whether /dev/null is a character device. But it is a much more lightweight check (doesn't need to execute a binary) and I'm having a hard time finding a scenario where /dev/null is anything but a character device Cheers, Michael [1] man 5 systemd.unit -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature