From 23a812bd5f42140e3555ad963de221c5d27d25e6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Mar 2018 14:46:14 +0100 Subject: [PATCH] Add monit to ceph-mgr --- ceph-mgr-create-start | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ceph-mgr-create-start b/ceph-mgr-create-start index a8f474a..e9a8842 100755 --- a/ceph-mgr-create-start +++ b/ceph-mgr-create-start @@ -19,4 +19,9 @@ ceph auth get-or-create mgr.$name \ osd 'allow *' \ mds 'allow *' > "$MGR_PATH/keyring" -/etc/init.d/ceph start mgr.$name +# Starting with monit, if available +if [ -e /etc/monit ]; then + /opt/ungleich-tools/monit-ceph-create-start mgr.${name} +else + /etc/init.d/ceph start mgr.${name} +fi