ceph/systemd/rbdmap.service.in

18 lines
346 B
SYSTEMD
Raw Normal View History

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