blk-availability.service 400 B

123456789101112131415
  1. [Unit]
  2. Description=Availability of block devices
  3. Before=shutdown.target
  4. After=lvm2-activation.service iscsi-shutdown.service iscsi.service iscsid.service fcoe.service rbdmap.service
  5. DefaultDependencies=no
  6. Conflicts=shutdown.target
  7. [Service]
  8. Type=oneshot
  9. ExecStart=/bin/true
  10. ExecStop=/sbin/blkdeactivate -u -l wholevg -m disablequeueing -r wait
  11. RemainAfterExit=yes
  12. [Install]
  13. WantedBy=sysinit.target