the old sys V init script does a lot of stuff, most of which
is already replaced with the system units since jewel,
except for the OSD activation which is still done by either
udev or the old init script.
include systemd service as drop in replacement for the init
script when using jewel. the service is not enabled by
default (as this would break hammer), but needs to be copied
to /etc/systemd/system on upgrade to (manual) or install of
jewel (automatic).
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
pve-manager.service \
pvedaemon.service \
pveproxy.service \
- spiceproxy.service
+ spiceproxy.service
.PHONY: install
install: ${SCRIPTS}
install -m 0755 ${SCRIPTS} ${INITDBINDIR}
install -d ${SERVICEDIR}
install -m 0644 ${SERVICES} ${SERVICEDIR}
+ install -d ${SERVICEDIR}/ceph-mon@.service.d
+ install -m 0644 pve.conf ${SERVICEDIR}/ceph-mon@.service.d
+ install -d ${SERVICEDIR}/ceph-osd@.service.d
+ install -m 0644 pve.conf ${SERVICEDIR}/ceph-osd@.service.d
+ install -d ${SERVICEDIR}/ceph-disk@.service.d
+ install -m 0644 pve.conf ${SERVICEDIR}/ceph-disk@.service.d
+ install -d ${SERVICEDIR}/ceph-mds@.service.d
+ install -m 0644 pve.conf ${SERVICEDIR}/ceph-mds@.service.d
+ install -d ${DESTDIR}/usr/share/doc/{$PACKAGE}/examples/
+ install -m 0644 ceph.service ${DESTDIR}/usr/share/doc/${PACKAGE}/examples/ceph.service
.PHONY: clean
clean:
--- /dev/null
+[Unit]
+Description=PVE activate Ceph OSD disks
+After=pve-cluster.service
+Requires=pve-cluster.service
+
+[Service]
+ExecStart=/usr/sbin/ceph-disk --log-stdout activate-all
+Type=oneshot
+
+[Install]
+WantedBy=ceph.target
--- /dev/null
+[Unit]
+After=pve-cluster.service