ironic.command.utils module

ironic.command.utils.handle_drain(signo, frame)[source]
ironic.command.utils.handle_no_deregister(signo, frame)[source]
ironic.command.utils.handle_signal()[source]

Add a signal handler for SIGUSR1, SIGUSR2.

The SIGUSR1 handler ensures that the manager is not deregistered when it is shutdown.

The SIGUSR2 handler starts a drain shutdown.