supervisord.conf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at https://mozilla.org/MPL/2.0/.
  4. [unix_http_server]
  5. file=/tmp/supervisor.sock
  6. chmod=0700
  7. [supervisord]
  8. logfile=/tmp/supervisord.log
  9. logfile_backups=0
  10. loglevel=info
  11. pidfile=/tmp/supervisord.pid
  12. childlogdir=/tmp
  13. nodaemon=true
  14. user=ubuntu
  15. [rpcinterface:supervisor]
  16. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  17. [supervisorctl]
  18. serverurl=unix:///tmp/supervisor.sock
  19. [include]
  20. files = /etc/supervisor/conf.d/*.conf
  21. [program:entrypoint]
  22. command=bash -c "/etc/entrypoint.sh"
  23. stdout_logfile=/tmp/entrypoint.log
  24. stdout_logfile_backups=0
  25. redirect_stderr=true
  26. stopasgroup=true
  27. stopsignal=INT
  28. autostart=true
  29. autorestart=true
  30. priority=1
  31. [program:selkies-gstreamer]
  32. command=bash -c "if [ $(echo %(ENV_NOVNC_ENABLE)s | tr '[:upper:]' '[:lower:]') != true ]; then /etc/selkies-gstreamer-entrypoint.sh; else sleep infinity; fi"
  33. stdout_logfile=/tmp/selkies-gstreamer-entrypoint.log
  34. stdout_logfile_backups=0
  35. redirect_stderr=true
  36. stopasgroup=true
  37. stopsignal=INT
  38. autostart=true
  39. autorestart=true
  40. priority=20
  41. [group:pipewire-group]
  42. program=pipewire,wireplumber,pipewire-pulse
  43. priority=10
  44. [program:pipewire]
  45. command=bash -c "until [ -S \"/tmp/.X11-unix/X${DISPLAY#*:}\" ]; do sleep 0.5; done; /usr/bin/pipewire"
  46. environment=PIPEWIRE_LATENCY="32/48000",DISPLAY=":0",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PIPEWIRE_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_XDG_RUNTIME_DIR)s/pulse"
  47. stdout_logfile=/tmp/pipewire.log
  48. stdout_logfile_backups=0
  49. redirect_stderr=true
  50. stopasgroup=true
  51. stopsignal=INT
  52. autostart=true
  53. autorestart=true
  54. [program:wireplumber]
  55. command=bash -c "until [ \"$(echo ${XDG_RUNTIME_DIR}/pipewire-*.lock)\" != \"${XDG_RUNTIME_DIR}/pipewire-*.lock\" ]; do sleep 0.5; done; /usr/bin/wireplumber"
  56. environment=PIPEWIRE_LATENCY="32/48000",DISPLAY=":0",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PIPEWIRE_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_XDG_RUNTIME_DIR)s/pulse"
  57. stdout_logfile=/tmp/wireplumber.log
  58. stdout_logfile_backups=0
  59. redirect_stderr=true
  60. stopasgroup=true
  61. stopsignal=INT
  62. autostart=true
  63. autorestart=true
  64. [program:pipewire-pulse]
  65. command=bash -c "until [ \"$(echo ${XDG_RUNTIME_DIR}/pipewire-*.lock)\" != \"${XDG_RUNTIME_DIR}/pipewire-*.lock\" ]; do sleep 0.5; done; /usr/bin/pipewire-pulse"
  66. environment=PIPEWIRE_LATENCY="32/48000",DISPLAY=":0",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PIPEWIRE_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_XDG_RUNTIME_DIR)s/pulse"
  67. stdout_logfile=/tmp/pipewire-pulse.log
  68. stdout_logfile_backups=0
  69. redirect_stderr=true
  70. stopasgroup=true
  71. stopsignal=INT
  72. autostart=true
  73. autorestart=true