mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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>
18 lines
472 B
SYSTEMD
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
|