supervisord.conf 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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=/dev/null
  9. loglevel=info
  10. pidfile=/tmp/supervisord.pid
  11. childlogdir=/tmp
  12. nodaemon=true
  13. [rpcinterface:supervisor]
  14. supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
  15. [supervisorctl]
  16. serverurl=unix:///tmp/supervisor.sock
  17. [include]
  18. files=/etc/supervisor/conf.d/*.conf
  19. # Starts Xorg and the XFCE session.
  20. [program:entrypoint]
  21. command=/usr/bin/dbus-run-session -- /etc/entrypoint.sh
  22. stdout_logfile=/dev/fd/1
  23. stdout_logfile_maxbytes=0
  24. redirect_stderr=true
  25. stopasgroup=true
  26. killasgroup=true
  27. stopsignal=INT
  28. autostart=true
  29. autorestart=true
  30. startretries=20
  31. priority=1
  32. # A lightweight system bus at a writable, rootless-compatible path.
  33. [program:dbus]
  34. command=/bin/bash -c 'install -d -m 0700 "${XDG_RUNTIME_DIR}" && dbus-daemon --system --nofork --nosyslog --nopidfile --address="${DBUS_SYSTEM_BUS_ADDRESS}"'
  35. environment=DISPLAY="%(ENV_DISPLAY)s",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",DBUS_SYSTEM_BUS_ADDRESS="%(ENV_DBUS_SYSTEM_BUS_ADDRESS)s"
  36. stdout_logfile=/dev/fd/1
  37. stdout_logfile_maxbytes=0
  38. redirect_stderr=true
  39. stopasgroup=true
  40. killasgroup=true
  41. stopsignal=INT
  42. autostart=true
  43. autorestart=true
  44. startretries=20
  45. priority=1
  46. [group:pipewire-group]
  47. programs=pipewire,wireplumber,pipewire-pulse
  48. priority=10
  49. [program:pipewire]
  50. command=/bin/bash -c 'until [ -S "/tmp/.X11-unix/X${DISPLAY#*:}" ]; do sleep 0.5; done; exec dbus-run-session -- /usr/bin/pipewire'
  51. environment=PIPEWIRE_LATENCY="128/48000",DISPLAY="%(ENV_DISPLAY)s",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",DBUS_SYSTEM_BUS_ADDRESS="%(ENV_DBUS_SYSTEM_BUS_ADDRESS)s",PIPEWIRE_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_XDG_RUNTIME_DIR)s/pulse"
  52. stdout_logfile=/dev/fd/1
  53. stdout_logfile_maxbytes=0
  54. redirect_stderr=true
  55. stopasgroup=true
  56. killasgroup=true
  57. stopsignal=INT
  58. autostart=true
  59. autorestart=true
  60. startretries=20
  61. [program:wireplumber]
  62. 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'
  63. environment=PIPEWIRE_LATENCY="128/48000",DISPLAY="%(ENV_DISPLAY)s",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",DBUS_SYSTEM_BUS_ADDRESS="%(ENV_DBUS_SYSTEM_BUS_ADDRESS)s",PIPEWIRE_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_XDG_RUNTIME_DIR)s/pulse"
  64. stdout_logfile=/dev/fd/1
  65. stdout_logfile_maxbytes=0
  66. redirect_stderr=true
  67. stopasgroup=true
  68. killasgroup=true
  69. stopsignal=INT
  70. autostart=true
  71. autorestart=true
  72. startretries=20
  73. [program:pipewire-pulse]
  74. 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'
  75. environment=PIPEWIRE_LATENCY="128/48000",DISPLAY="%(ENV_DISPLAY)s",DISABLE_RTKIT="y",XDG_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",DBUS_SYSTEM_BUS_ADDRESS="%(ENV_DBUS_SYSTEM_BUS_ADDRESS)s",PIPEWIRE_RUNTIME_DIR="%(ENV_XDG_RUNTIME_DIR)s",PULSE_RUNTIME_PATH="%(ENV_XDG_RUNTIME_DIR)s/pulse"
  76. stdout_logfile=/dev/fd/1
  77. stdout_logfile_maxbytes=0
  78. redirect_stderr=true
  79. stopasgroup=true
  80. killasgroup=true
  81. stopsignal=INT
  82. autostart=true
  83. autorestart=true
  84. startretries=20
  85. # Selkies now serves its own web client directly; no NGINX or VNC process.
  86. [program:selkies]
  87. command=/etc/selkies-entrypoint.sh
  88. environment=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"
  89. stdout_logfile=/dev/fd/1
  90. stdout_logfile_maxbytes=0
  91. redirect_stderr=true
  92. stopasgroup=true
  93. killasgroup=true
  94. stopsignal=INT
  95. autostart=true
  96. autorestart=true
  97. startsecs=1
  98. startretries=20
  99. priority=20
  100. [program:nginx]
  101. command=/bin/bash /etc/nginx-entrypoint.sh
  102. stdout_logfile=/dev/fd/1
  103. stdout_logfile_maxbytes=0
  104. redirect_stderr=true
  105. stopasgroup=true
  106. killasgroup=true
  107. stopsignal=QUIT
  108. autostart=true
  109. autorestart=true
  110. startsecs=1
  111. startretries=20
  112. priority=30