qubes-dvm 576 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/bash
  2. #
  3. # chkconfig: 345 91 91
  4. # description: Executes Qubes core scripts at AppVM boot
  5. #
  6. # This must run after GUI agent has started. Hence 91.
  7. #
  8. # Source function library.
  9. . /etc/rc.d/init.d/functions
  10. # Source Qubes library.
  11. . /usr/lib/qubes/init/functions
  12. start()
  13. {
  14. have_qubesdb || return
  15. if qsvc qubes-dvm; then
  16. echo -n $"Preparing Qubes DVM:"
  17. /usr/lib/qubes/init/prepare-dvm.sh && success || failure
  18. echo
  19. fi
  20. }
  21. stop()
  22. {
  23. return 0
  24. }
  25. case "$1" in
  26. start)
  27. start
  28. ;;
  29. stop)
  30. stop
  31. ;;
  32. *)
  33. echo $"Usage: $0 {start|stop}"
  34. exit 3
  35. ;;
  36. esac
  37. exit $RETVAL