systemd: set up environment in rbdmap unit file

http://tracker.ceph.com/issues/14984 Fixes: #14984

Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
Nathan Cutler 2016-03-19 05:36:59 +01:00
parent 802e6bb490
commit a7a36581ff

View File

@ -5,6 +5,8 @@ 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