From dc93132d8cc1edf83b7e0a603b366cde6750f4d6 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 29 Nov 2012 18:07:20 -0800 Subject: [PATCH] logrotate: fix rotation Fixes: #3554 Always reload with Upstart because in some configs the init.d script doesn't work Signed-off-by: David Zafman --- src/logrotate.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logrotate.conf b/src/logrotate.conf index 97d4fcdc54566..c4857f00c10a6 100644 --- a/src/logrotate.conf +++ b/src/logrotate.conf @@ -8,7 +8,9 @@ invoke-rc.d ceph reload >/dev/null elif which service && [ -x `which service` ]; then service ceph reload >/dev/null - elif which initctl && [ -x `which initctl` ]; then + fi + # Possibly reload twice, but depending on ceph.conf the reload above may be a no-op + if which initctl && [ -x `which initctl` ]; then # upstart reload isn't very helpful here: # https://bugs.launchpad.net/upstart/+bug/1012938 for type in mon osd mds; do -- 2.39.5