supervisord.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. [supervisord]
  5. user=user
  6. nodaemon=true
  7. loglevel=info
  8. logfile=/tmp/supervisord.log
  9. pidfile=/tmp/supervisord.pid
  10. [program:entrypoint]
  11. command=/etc/entrypoint.sh
  12. logfile=/tmp/entrypoint.log
  13. pidfile=/tmp/entrypoint.pid
  14. stopsignal=INT
  15. autostart=true
  16. autorestart=true
  17. redirect_stderr=true
  18. priority=1
  19. [program:pulseaudio]
  20. user=user
  21. command=bash -c "until [ -S \"/tmp/.X11-unix/X${DISPLAY/:/}\" ]; do sleep 1; done; sudo /usr/bin/pulseaudio -k >/dev/null 2>&1 || sudo /usr/bin/pulseaudio --system --verbose --log-target=stderr --realtime=true --disallow-exit -L 'module-native-protocol-tcp auth-ip-acl=127.0.0.0/8 port=4713 auth-anonymous=1'"
  22. environment=DISPLAY=":0"
  23. logfile=/tmp/pulseaudio.log
  24. pidfile=/tmp/pulseaudio.pid
  25. stopsignal=INT
  26. autostart=true
  27. autorestart=true
  28. redirect_stderr=true
  29. priority=10
  30. [program:selkies-gstreamer]
  31. user=user
  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. logfile=/tmp/selkies-gstreamer-entrypoint.log
  34. pidfile=/tmp/selkies-gstreamer-entrypoint.pid
  35. stopsignal=INT
  36. autostart=true
  37. autorestart=true
  38. redirect_stderr=true
  39. priority=20