ceph/systemd/rbdmap.service
Jelle vd Kooij 57b6f656e1 Add Install section to systemd rbdmap.service file
Signed-off-by: Jelle vd Kooij <vdkooij.jelle@gmail.com>
2016-09-01 00:42:34 +02:00

18 lines
375 B
Desktop File

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