]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: handle SIGTERM/SIGINT in standby mgr to avoid CEPHADM_FAILED_DAEMON 69456/head
authorNitzan Mordechai <nmordech@ibm.com>
Sun, 14 Jun 2026 07:55:36 +0000 (07:55 +0000)
committerNitzan Mordechai <nmordech@ibm.com>
Sun, 14 Jun 2026 08:07:10 +0000 (08:07 +0000)
commita3dad559e87600b394d80cd51b244b0dcc3f31d9
treeae33fb9450ef88b45c994c4810e2d8c646044f76
parentca0bc48a2a27f64176942b54341b640905c89a3e
mgr: handle SIGTERM/SIGINT in standby mgr to avoid CEPHADM_FAILED_DAEMON

MgrStandby only registered SIGHUP, leaving SIGTERM/SIGINT at OS defaults.
When a standby is stopped via `ceph orch daemon stop`, SIGTERM terminates
it with exit code 143, causing systemd to mark the unit as failed instead
of stopped, which triggers CEPHADM_FAILED_DAEMON.

Mirror the handler already used in Mgr::init() for the active mgr.

Fixes: https://tracker.ceph.com/issues/77116
Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
src/mgr/MgrStandby.cc