qubes-qrexec-agent 454 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. start()
  9. {
  10. echo -n $"Starting Qubes RPC agent:"
  11. /usr/lib/qubes/qrexec-agent 2>/var/log/qubes/qrexec-agent.log &
  12. success
  13. echo ""
  14. return 0
  15. }
  16. stop()
  17. {
  18. killproc qrexec-agent
  19. }
  20. case "$1" in
  21. start)
  22. start
  23. ;;
  24. stop)
  25. stop
  26. ;;
  27. *)
  28. echo $"Usage: $0 {start|stop}"
  29. exit 3
  30. ;;
  31. esac
  32. exit $RETVAL