summaryrefslogtreecommitdiffstats
path: root/src/mon/Monitor.cc
diff options
context:
space:
mode:
authorVikhyat Umrao <vikhyat@redhat.com>2022-05-23 21:49:35 +0200
committerGitHub <noreply@github.com>2022-05-23 21:49:35 +0200
commitcd08198132e4385177b657dcfea32bfc9f0641c5 (patch)
tree1b27b7b25b731a0f0ee3b0bb97c7148ea3f59498 /src/mon/Monitor.cc
parentMerge pull request #46233 from rhcs-dashboard/fix-overlapping-form-icons (diff)
parentmon/LogMonitor: reopen log files on SIGHUP (diff)
downloadceph-cd08198132e4385177b657dcfea32bfc9f0641c5.tar.xz
ceph-cd08198132e4385177b657dcfea32bfc9f0641c5.zip
Merge pull request #46124 from SMIL-Infra/reopen_cluster_logs
mon/LogMonitor: reopen log files on SIGHUP
Diffstat (limited to 'src/mon/Monitor.cc')
-rw-r--r--src/mon/Monitor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc
index 2d6e7cf4572..9cad33a9484 100644
--- a/src/mon/Monitor.cc
+++ b/src/mon/Monitor.cc
@@ -501,6 +501,7 @@ void Monitor::handle_signal(int signum)
derr << "*** Got Signal " << sig_str(signum) << " ***" << dendl;
if (signum == SIGHUP) {
sighup_handler(signum);
+ logmon()->reopen_logs();
} else {
ceph_assert(signum == SIGINT || signum == SIGTERM);
shutdown();