qubes-qrexec-agent 654 B

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