[Pkg-systemd-maintainers] systemd support in openssh-server
Michael Biebl
biebl at debian.org
Tue Feb 11 00:13:42 GMT 2014
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140211/4f4f6b04/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list