dm-sv-getstatus-libvirtd.sh 411 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. # Get status qemu services (libvirtd, virtlockd, virtlogd).
  3. status="Unknown"
  4. if [[ -L /etc/runit/runsvdir/default/libvirtd &&
  5. -L /etc/runit/runsvdir/default/virtlockd &&
  6. -L /etc/runit/runsvdir/default/virtlogd ]]; then
  7. status="Upped"
  8. else
  9. status="Downed"
  10. fi
  11. notify-send -t 5000 -i dialog-information "Services status:" "\nlibvirtd, virtlockd, virtlogd are\n${status}"