supervisord.conf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [unix_http_server]
  2. file=/tmp/supervisor.sock
  3. chmod=0700
  4. [supervisord]
  5. logfile=/dev/null
  6. loglevel=info
  7. pidfile=/tmp/supervisord.pid
  8. childlogdir=/tmp
  9. nodaemon=true
  10. [rpcinterface:supervisor]
  11. supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
  12. [supervisorctl]
  13. serverurl=unix:///tmp/supervisor.sock
  14. ; =============================================================================
  15. ; Xorg + XFCE
  16. ;
  17. ; Keep the program name "entrypoint": sunshine-entrypoint.sh intentionally
  18. ; restarts this Supervisor program after Sunshine creates its uinput devices.
  19. ; =============================================================================
  20. [program:entrypoint]
  21. command=/usr/bin/dbus-run-session -- /etc/desktop-entrypoint.sh
  22. environment=HOME="/home/ubuntu",USER="ubuntu",DISPLAY="%(ENV_DISPLAY)s",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PIPEWIRE_RUNTIME_DIR="%(ENV_PIPEWIRE_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_PULSE_RUNTIME_PATH)s",PULSE_SERVER="%(ENV_PULSE_SERVER)s"
  23. stdout_logfile=/dev/fd/1
  24. stdout_logfile_maxbytes=0
  25. redirect_stderr=true
  26. stopasgroup=true
  27. killasgroup=true
  28. stopsignal=TERM
  29. autostart=true
  30. autorestart=true
  31. startsecs=1
  32. startretries=20
  33. priority=5
  34. ; =============================================================================
  35. ; PipeWire
  36. ; =============================================================================
  37. [group:pipewire-group]
  38. programs=pipewire,wireplumber,pipewire-pulse
  39. priority=10
  40. [program:pipewire]
  41. command=/bin/bash -c 'until [ -S "/tmp/.X11-unix/X${DISPLAY#*:}" ]; do sleep 0.5; done; exec dbus-run-session -- /usr/bin/pipewire'
  42. environment=HOME="/home/ubuntu",USER="ubuntu",PIPEWIRE_LATENCY="128/48000",DISPLAY="%(ENV_DISPLAY)s",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PIPEWIRE_RUNTIME_DIR="%(ENV_PIPEWIRE_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_PULSE_RUNTIME_PATH)s",PULSE_SERVER="%(ENV_PULSE_SERVER)s"
  43. stdout_logfile=/dev/fd/1
  44. stdout_logfile_maxbytes=0
  45. redirect_stderr=true
  46. stopasgroup=true
  47. killasgroup=true
  48. stopsignal=INT
  49. autostart=true
  50. autorestart=true
  51. startsecs=1
  52. startretries=20
  53. [program:wireplumber]
  54. command=/bin/bash -c 'until compgen -G "${XDG_RUNTIME_DIR}/pipewire-*.lock" >/dev/null; do sleep 0.5; done; exec dbus-run-session -- /usr/bin/wireplumber'
  55. environment=HOME="/home/ubuntu",USER="ubuntu",PIPEWIRE_LATENCY="128/48000",DISPLAY="%(ENV_DISPLAY)s",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PIPEWIRE_RUNTIME_DIR="%(ENV_PIPEWIRE_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_PULSE_RUNTIME_PATH)s",PULSE_SERVER="%(ENV_PULSE_SERVER)s"
  56. stdout_logfile=/dev/fd/1
  57. stdout_logfile_maxbytes=0
  58. redirect_stderr=true
  59. stopasgroup=true
  60. killasgroup=true
  61. stopsignal=INT
  62. autostart=true
  63. autorestart=true
  64. startsecs=1
  65. startretries=20
  66. [program:pipewire-pulse]
  67. command=/bin/bash -c 'until compgen -G "${XDG_RUNTIME_DIR}/pipewire-*.lock" >/dev/null; do sleep 0.5; done; exec dbus-run-session -- /usr/bin/pipewire-pulse'
  68. environment=HOME="/home/ubuntu",USER="ubuntu",PIPEWIRE_LATENCY="128/48000",DISPLAY="%(ENV_DISPLAY)s",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PIPEWIRE_RUNTIME_DIR="%(ENV_PIPEWIRE_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_PULSE_RUNTIME_PATH)s",PULSE_SERVER="%(ENV_PULSE_SERVER)s"
  69. stdout_logfile=/dev/fd/1
  70. stdout_logfile_maxbytes=0
  71. redirect_stderr=true
  72. stopasgroup=true
  73. killasgroup=true
  74. stopsignal=INT
  75. autostart=true
  76. autorestart=true
  77. startsecs=1
  78. startretries=20