File size: 5,816 Bytes
e57a6ec | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | [supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
childlogdir=/var/log/supervisor
[include]
files=/etc/supervisor/conf.d/*.conf
[inet_http_server]
port=*:9001
username=supervisor
password=${SUPERVISOR_HTTP_AUTH:-supervisor}
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700
username=supervisor
password=${SUPERVISOR_HTTP_AUTH:-supervisor}
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
username=supervisor
password=${SUPERVISOR_HTTP_AUTH:-supervisor}
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
# ============================================
# Managed processes: cron + openclaw-gateway
# ============================================
[program:cron]
command=/bin/bash -c 'echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] cron: waiting for restore to complete..."; waited=0; while [ ! -f /tmp/openclaw-restore-completed ]; do sleep 5; waited=$((waited + 5)); if [ $waited -ge 5400 ]; then echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] cron: restore flag timeout after ${waited}s, starting anyway"; break; fi; done; echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] cron: restore completed, starting cron daemon"; rm -f /var/run/crond.pid /var/run/cron.pid; exec /usr/sbin/cron -f'
autostart=true
autorestart=true
startsecs=2
startretries=3
exitcodes=0
stopsignal=TERM
stopasgroup=false
killasgroup=false
stdout_logfile=/var/log/hf-entrypoint/cron-stdout.log
stderr_logfile=/var/log/hf-entrypoint/cron-stderr.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
[program:nginx-demo]
command=/bin/bash -c 'echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] nginx-demo: waiting for restore to complete..."; waited=0; while [ ! -f /tmp/openclaw-restore-completed ]; do sleep 5; waited=$((waited + 5)); if [ $waited -ge 5400 ]; then echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] nginx-demo: restore flag timeout after ${waited}s, starting anyway"; break; fi; done; echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] nginx-demo: restore completed, starting nginx proxy demo"; exec /usr/local/bin/nginx-demo.sh'
user=root
autostart=true
autorestart=unexpected
startsecs=5
startretries=3
exitcodes=0
stopsignal=TERM
stopasgroup=true
killasgroup=true
stdout_logfile=/var/log/hf-entrypoint/nginx-demo-stdout.log
stderr_logfile=/var/log/hf-entrypoint/nginx-demo-stderr.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
[program:backup-watchdog]
command=/bin/bash -c 'echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] watchdog: waiting for restore to complete..."; waited=0; while [ ! -f /tmp/openclaw-restore-completed ]; do sleep 5; waited=$((waited + 5)); if [ $waited -ge 5400 ]; then echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] watchdog: restore flag timeout after ${waited}s, starting anyway"; break; fi; done; echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] watchdog: restore completed, starting watchdog"; exec /usr/local/bin/openclaw-backup-watchdog.sh'
user=root
autostart=true
autorestart=true
startsecs=5
startretries=3
exitcodes=0
stopsignal=TERM
stopasgroup=true
killasgroup=true
stdout_logfile=/var/log/hf-entrypoint/watchdog-stdout.log
stderr_logfile=/var/log/hf-entrypoint/watchdog-stderr.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
[program:openclaw-gateway]
command=/usr/local/bin/openclaw-entrypoint.sh gateway
autostart=true
autorestart=false
startsecs=5
startretries=0
exitcodes=0
stopsignal=TERM
stopasgroup=true
killasgroup=true
stdout_logfile=/var/log/hf-entrypoint/openclaw-gateway-stdout.log
stderr_logfile=/var/log/hf-entrypoint/openclaw-gateway-stderr.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
[program:ccmr-gateway]
command=/usr/local/bin/ccmr-wrapper.sh
user=root
autostart=true
autorestart=unexpected
startsecs=5
startretries=3
exitcodes=0
stopsignal=TERM
stopasgroup=true
killasgroup=true
stdout_logfile=/var/log/hf-entrypoint/ccmr-gateway-stdout.log
stderr_logfile=/var/log/hf-entrypoint/ccmr-gateway-stderr.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
; [program:hf-model1]
; command=/bin/bash -c 'echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] hf-model1: waiting for restore to complete..."; waited=0; while [ ! -f /tmp/openclaw-restore-completed ]; do sleep 5; waited=$((waited + 5)); if [ $waited -ge 5400 ]; then echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] hf-model1: restore flag timeout after ${waited}s, starting anyway"; break; fi; done; echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] hf-model1: restore completed, starting hf-model1"; exec /usr/local/bin/hf-model1-setup.sh'
; user=root
; autostart=true
; autorestart=unexpected
; startsecs=5
; startretries=3
; exitcodes=0
; stopsignal=TERM
; stopasgroup=true
; killasgroup=true
; stdout_logfile=/var/log/hf-entrypoint/hf-model1-stdout.log
; stderr_logfile=/var/log/hf-entrypoint/hf-model1-stderr.log
; stdout_logfile_maxbytes=10MB
; stderr_logfile_maxbytes=10MB
; [program:hf-model2]
; command=/bin/bash -c 'echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] hf-model2: waiting for restore to complete..."; waited=0; while [ ! -f /tmp/openclaw-restore-completed ]; do sleep 5; waited=$((waited + 5)); if [ $waited -ge 5400 ]; then echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] hf-model2: restore flag timeout after ${waited}s, starting anyway"; break; fi; done; echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] hf-model2: restore completed, starting hf-model2"; exec /usr/local/bin/hf-model2-setup.sh'
; user=root
; autostart=true
; autorestart=unexpected
; startsecs=5
; startretries=3
; exitcodes=0
; stopsignal=TERM
; stopasgroup=true
; killasgroup=true
; stdout_logfile=/var/log/hf-entrypoint/hf-model2-stdout.log
; stderr_logfile=/var/log/hf-entrypoint/hf-model2-stderr.log
; stdout_logfile_maxbytes=10MB
; stderr_logfile_maxbytes=10MB |