]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
logrotate: fix rotation
authorDavid Zafman <david.zafman@inktank.com>
Fri, 30 Nov 2012 02:07:20 +0000 (18:07 -0800)
committerSage Weil <sage@inktank.com>
Fri, 30 Nov 2012 02:18:13 +0000 (18:18 -0800)
Fixes: #3554
Always reload with Upstart because in some configs the init.d script doesn't work

Signed-off-by: David Zafman <david.zafman@inktank.com>
src/logrotate.conf

index 97d4fcdc5456610a651b14933fde21d1b574f893..c4857f00c10a6050137a3488df4a93a3182f3299 100644 (file)
@@ -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