summaryrefslogtreecommitdiff
path: root/src/ceph_mon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ceph_mon.cc')
-rw-r--r--src/ceph_mon.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ceph_mon.cc b/src/ceph_mon.cc
index f247de8cdfb..35ed56a7985 100644
--- a/src/ceph_mon.cc
+++ b/src/ceph_mon.cc
@@ -552,6 +552,9 @@ int main(int argc, const char **argv)
register_async_signal_handler_oneshot(SIGINT, handle_mon_signal);
register_async_signal_handler_oneshot(SIGTERM, handle_mon_signal);
+ if (g_conf->inject_early_sigterm)
+ kill(getpid(), SIGTERM);
+
messenger->wait();
unregister_async_signal_handler(SIGHUP, sighup_handler);