Commit 551b4cd9 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Ceph daemons should have its own targets in systemd

parent 9c07e81e
......@@ -54,8 +54,11 @@ all: ceph-config
mv -v /lib/ceph/* /usr/lib/ceph
rm -rf /lib/ceph
install -v -Dm755 -d /etc/sysconfig
install -v -Dm755 -d /etc/systemd/system/ceph-mon.target.wants
install -v -Dm755 -d /etc/systemd/system/ceph-mds.target.wants
install -v -Dm755 -d /etc/systemd/system/ceph-mgr.target.wants
install -v -Dm755 -d /etc/systemd/system/ceph-mon.target.wants
install -v -Dm755 -d /etc/systemd/system/ceph-osd.target.wants
install -v -Dm755 -d /etc/systemd/system/ceph-radosgw.target.wants
install -v -Dm755 -o ceph -g ceph -d /etc/ceph
install -v -Dm755 -o ceph -g ceph -d /var/lib/ceph/bootstrap-osd
install -v -Dm755 -o ceph -g ceph -d /var/lib/ceph/mds
......@@ -69,8 +72,11 @@ all: ceph-config
sed -e 's|^Environment=.*|ExecStartPre=/usr/sbin/ceph-mon-bootstrap|' -i /lib/systemd/system/ceph-mon@.service
systemctl enable ceph-mon.target
systemctl enable ceph-mds.target
systemctl enable ceph-mgr.target
systemctl enable ceph-mon.target
systemctl enable ceph-osd.target
systemctl enable ceph-radosgw.target
rm -rf ceph-14.2.2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment