Spaces:
Paused
Paused
Create supervisord.conf
Browse files- supervisord.conf +33 -0
supervisord.conf
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
nodaemon=true
|
| 3 |
+
user=root
|
| 4 |
+
logfile=/var/log/supervisor/supervisord.log
|
| 5 |
+
pidfile=/var/run/supervisord.pid
|
| 6 |
+
|
| 7 |
+
; ── VNC Server ───────────────────────────────────────────────
|
| 8 |
+
[program:vncserver]
|
| 9 |
+
command=su user -c "vncserver :1 -geometry 1280x800 -depth 24 -rfbport 5901 -fg"
|
| 10 |
+
autostart=true
|
| 11 |
+
autorestart=true
|
| 12 |
+
priority=10
|
| 13 |
+
stdout_logfile=/var/log/supervisor/vnc.log
|
| 14 |
+
stderr_logfile=/var/log/supervisor/vnc_err.log
|
| 15 |
+
environment=HOME="/home/user",USER="user",DISPLAY=":1"
|
| 16 |
+
|
| 17 |
+
; ── noVNC WebSocket proxy ─────────────────────────────────────
|
| 18 |
+
[program:novnc]
|
| 19 |
+
command=websockify --web=/usr/share/novnc 7860 localhost:5901
|
| 20 |
+
autostart=true
|
| 21 |
+
autorestart=true
|
| 22 |
+
priority=20
|
| 23 |
+
startretries=5
|
| 24 |
+
stdout_logfile=/var/log/supervisor/novnc.log
|
| 25 |
+
stderr_logfile=/var/log/supervisor/novnc_err.log
|
| 26 |
+
|
| 27 |
+
; ── Log directory creation ────────────────────────────────────
|
| 28 |
+
[program:setup]
|
| 29 |
+
command=mkdir -p /var/log/supervisor
|
| 30 |
+
autostart=true
|
| 31 |
+
autorestart=false
|
| 32 |
+
priority=1
|
| 33 |
+
startsecs=0
|