Skip to content

Investigate systemd dependency settings so NUT daemons stop late in shutdown #1904

Description

@jimklimov

Currently when the system shutdown begins, NUT units are among the first ones to stop since their multi-user.target reason-to-be becomes disabled. Sometimes other units (e.g. wrappers of VMs and containers, appserver-db chains, etc.) take much longer to stop and the system is in the dark about current UPS info.

See if dependencies can be reshuffled so that NUT units only finish when all the long shutdown parts have completed and we are just about to actively enter the shutdown/restart/... targets, and that systemd won't terminate them after 90 seconds just for lingering.

Note that currently we re-run the driver(s) on the primary monitoring system to kill power, if configured to, as part of systemd shutdown hooks - that is a separate subject, but the "production" driver must be no longer running by that moment.

CC @bigon @svarshavchik @aquette : any ideas? :)

TODO: Check if similar issue bites in SMF as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    service/daemon start/stopGeneral subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debugsystemd

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions