qubes-qrexec-agent 563 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. exit $RETVAL