From e681eedf66e63f6b596a79dbf053ef8fe61750a0 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Mar 2018 14:14:01 +0100 Subject: [PATCH] Always depend on cephrundir --- monit-ceph-create-start | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/monit-ceph-create-start b/monit-ceph-create-start index bb707e7..2289c0f 100755 --- a/monit-ceph-create-start +++ b/monit-ceph-create-start @@ -12,16 +12,17 @@ to_monitor=$1 set -e -depends="" +depends="cephrundir" osd="" conf="/etc/monit/conf.d/$to_monitor" if echo $to_monitor | grep ^osd; then - depends="depends on ${to_monitor}-whoami" + depends="${depends}, ${to_monitor}-whoami" osd="yes" osdid=$(echo $to_monitor | cut -d. -f2) fi + cat > "$conf" <