Thorsten Glaser
2025-01-15 00:00:01 UTC
Reply
PermalinkIt looks like this is doing some checks, and intends to skip. But just
exiting means the service is recorded as failed, and this will likely
trip other tests, hence the severity to stop migrating to testing for
now.
Ah, ouch. Agreed.exiting means the service is recorded as failed, and this will likely
trip other tests, hence the severity to stop migrating to testing for
now.
There are several ways to do such checks natively _and_ resulting in a
service that is skipped, rather than failed.
I actually asked you (systemd maintainers in Cc) about this in:service that is skipped, rather than failed.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D504044#162
Or, you could have a special exit status that means the service is
https://www.freedesktop.org/software/systemd/man/latest/systemd.service.ht=
ml#SuccessExitStatus=3Dhttps://www.freedesktop.org/software/systemd/man/latest/systemd.service.ht=
RestartPreventExitStatus was the one I found and wondered about.
You could run the script that does the check in an ExecCondition=3D
statement - if that fails, the service is marked as skipped.
https://www.freedesktop.org/software/systemd/man/latest/systemd.service.ht=
ml#ExecCondition=3Dstatement - if that fails, the service is marked as skipped.
https://www.freedesktop.org/software/systemd/man/latest/systemd.service.ht=
That=E2=80=99s also an option.
Would you mind looking at the aforementioned mail again, as it
also has other questions, and suggest how we best deal with this?
Additionally=E2=80=A6 what should we do if no random device is found,
as opposed to quietly not starting if one is found that doesn=E2=80=99t
need rngd to run? The sysvinit script will also just exit 0 in
that case, but it doesn=E2=80=99t have service tracking, and a subsequent
status query will show the d=C3=A6mon as not running, obviously. I=E2=80=99=
ve
got no idea how this maps best into the systemd ecosystem, though
I=E2=80=99m currently leaning towards making all the =E2=80=9Cexpected not =
to start=E2=80=9D
conditions the same.
Thanks in advance,
//mirabilos
--=20
[...] if maybe ext3fs wasn't a better pick, or jfs, or maybe reiserfs, oh b=
ut
what about xfs, and if only i had waited until reiser4 was ready... in the =
be-
ginning, there was ffs, and in the middle, there was ffs, and at the end, t=
here
was still ffs, and the sys admins knew it was good. :) -- Ted Unangst =C3=
=BCber *fs