Lintian ReportsBETA

Tag versions

Wsystemd-service-file-shutdown-problems

The tag is present in Lintian version 2.113.26. That is the most recent version we know about.

We use semantic versions. The patch number is a commit step indicator relative to the 2.113.0 release tag in our Git repository.

You can find the detection logic for this version at commit 43a81d7. For merge requests, please use the latest version in the Lintian check systemd.

Visibility: warning

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.

For more information please consult:

The following 5 source packages in the archive triggered the tag 6 times (in any Lintian version).

There were no overrides.