Files
ceph/systemd/ceph-volume@.service.in
Thomas Lamprecht 2fce003f8d systemd services: fix installing ceph-volume@
The ceph-volume@ service uses the @CMAKE_INSTALL_PREFIX@, so we cannot
just install it directly like the target units, but need to process it
like all other units that are referring to actual executables that
reside in build-target dependent paths.

Fixes: 68c72c5dff ("systemd: use CMake install prefix in templates")
Reported-by: Daniel Herzig <d.herzig@proxmox.com>
Reported-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2026-01-06 19:57:57 +08:00

15 lines
320 B
SYSTEMD

[Unit]
Description=Ceph Volume activation: %i
After=local-fs.target
Wants=local-fs.target
[Service]
Type=oneshot
KillMode=none
Environment=CEPH_VOLUME_TIMEOUT=10000
ExecStart=/bin/sh -c 'timeout $CEPH_VOLUME_TIMEOUT @CMAKE_INSTALL_PREFIX@/sbin/ceph-volume-systemd %i'
TimeoutSec=0
[Install]
WantedBy=multi-user.target