From bfe5e19c0894cdcc6b7522df002c99521b2c1ff6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 8 Mar 2018 13:43:26 +0100 Subject: [PATCH] Fix pid dir permissions for ceph mon --- ceph-mon-create-start | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ceph-mon-create-start b/ceph-mon-create-start index a435c57..ab4d7a8 100755 --- a/ceph-mon-create-start +++ b/ceph-mon-create-start @@ -10,6 +10,9 @@ fname=$1 ceph-mon --mkfs -i $(hostname) --keyring "$fname" --setuser ceph --setgroup ceph touch /var/lib/ceph/mon/ceph-$(hostname)/sysvinit +# Fix broken permissions +chown ceph:ceph /var/run/ceph/ + # Starting with monit, if available if [ -e /etc/monit ]; then /opt/ungleich-tools/monit-ceph-create-start mon.$(hostname)