[PATCH] debian/ceph.logrotate: enhance postrotate for "service" util

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



invoke-rc.d is debian specific. 

run "service ceph reload" if invoke-rc.d fails.


diff --git a/debian/ceph.logrotate b/debian/ceph.logrotate
index 851d57f..baea2e9 100644
--- a/debian/ceph.logrotate
+++ b/debian/ceph.logrotate
@@ -4,6 +4,6 @@
     compress
     sharedscripts
     postrotate
-        invoke-rc.d ceph reload
+        invoke-rc.d ceph reload || service ceph reload
     endscript
 }

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux