ceph-mirror/systemd/rbdmap.service.in
steven 68c72c5dff systemd: use CMake install prefix in templates
The current systemd services use hard coded paths.
This commit uses CMake install prefix in the templates to
setup paths to executables where they are actually installed.

Signed-off-by: steven <steven.chien@ed.ac.uk>
2024-10-31 17:20:22 +00:00

18 lines
472 B
SYSTEMD

[Unit]
Description=Map RBD devices
After=network-online.target ceph.target
Before=remote-fs-pre.target
Wants=network-online.target remote-fs-pre.target ceph.target
[Service]
EnvironmentFile=-@SYSTEMD_ENV_FILE@
Environment=RBDMAPFILE=/etc/ceph/rbdmap
Type=oneshot
RemainAfterExit=yes
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/rbdmap map
ExecReload=@CMAKE_INSTALL_PREFIX@/bin/rbdmap map
ExecStop=@CMAKE_INSTALL_PREFIX@/bin/rbdmap unmap-all
[Install]
WantedBy=multi-user.target