Use monit for ceph starting

This commit is contained in:
Nico Schottelius 2018-04-04 17:28:42 +02:00
parent fb27f34d93
commit c8d8959398

View file

@ -20,7 +20,11 @@ for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do
mkdir -p "$dir" mkdir -p "$dir"
mount "$dev" "$dir" mount "$dev" "$dir"
/etc/init.d/ceph start "osd.$id" if [ -e /etc/monit ]; then
/opt/ungleich-tools/monit-ceph-create-start
else
/etc/init.d/ceph start "osd.$id"
fi
done done
rmdir "$tmpdir" rmdir "$tmpdir"