Lintian tag: systemd-service-file-shutdown-problems

Type: warning

Description (from lintian-explain-tags)

The specified systemd .service file contains both DefaultDependencies=no
and Conflicts=shutdown.target directives without Before=shutdown.target.

This can lead to problems during shutdown because the service may linger
until the very end of shutdown sequence as nothing requests to stop it
before (due to DefaultDependencies=no).

There is race condition between stopping units and systemd getting a
request to exit the main loop, so it may proceed with shutdown before all
pending stop jobs have been processed.

Please add Before=shutdown.target.

Please refer to https://github.com/systemd/systemd/issues/11821 for
details.

Visibility: warning
Show-Always: no
Check: systemd

Affected packages

source version binary level tag count information
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/dracut-initqueue.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/initrd.target.wants/dracut-mount.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/dracut-pre-pivot.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/initrd.target.wants/dracut-pre-pivot.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/dracut-pre-trigger.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/dracut-pre-udev.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/initrd.target.wants/dracut-pre-mount.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/dracut-cmdline.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/initrd.target.wants/dracut-initqueue.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/initrd.target.wants/dracut-pre-udev.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/dracut-mount.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/initrd.target.wants/dracut-cmdline.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/dracut-pre-mount.service]
dracut 106-6 dracut-core/106-6 overridden systemd-service-file-shutdown-problems 9 [usr/lib/systemd/system/initrd.target.wants/dracut-pre-trigger.service]
drbl 5.4.10-1 drbl/5.4.10-1 warning systemd-service-file-shutdown-problems 1 [usr/share/drbl/setup/files/DBN/DBN10.0/systemd/system/ocsd-rescue.service]
drbl 5.4.10-1 drbl/5.4.10-1 warning systemd-service-file-shutdown-problems 1 [usr/share/drbl/setup/files/DBN/DBN12.0/systemd/system/ocsd-rescue.service]
drbl 5.4.10-1 drbl/5.4.10-1 warning systemd-service-file-shutdown-problems 1 [usr/share/drbl/setup/files/DBN/DBN-TU/systemd/system/ocsd-rescue.service]
drbl 5.4.10-1 drbl/5.4.10-1 warning systemd-service-file-shutdown-problems 1 [usr/share/drbl/setup/files/DBN/DBN11.0/systemd/system/ocsd-rescue.service]