qubes-qrexec-agent 591 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. #
  3. # chkconfig: 345 90 90
  4. # description: Executes Qubes core scripts at VM boot
  5. #
  6. # Source function library.
  7. . /etc/rc.d/init.d/functions
  8. # Source Qubes library.
  9. . /usr/lib/qubes/init/functions
  10. start()
  11. {
  12. have_qrexec_agent || return
  13. echo -n $"Starting Qubes RPC agent:"
  14. /usr/lib/qubes/qrexec-agent 2>/var/log/qubes/qrexec-agent.log &
  15. success
  16. echo ""
  17. return 0
  18. }
  19. stop()
  20. {
  21. have_qrexec_agent || return
  22. killproc qrexec-agent
  23. }
  24. case "$1" in
  25. start)
  26. start
  27. ;;
  28. stop)
  29. stop
  30. ;;
  31. *)
  32. echo $"Usage: $0 {start|stop}"
  33. exit 3
  34. ;;
  35. esac
  36. # shellcheck disable=SC2086
  37. exit $RETVAL