Download scripts/supervisord.conf from SZFSPC/apple: direct link, hf CLI and curl.
- Browser
- Download file 3.48 kB
-
https://huggingface.co/spaces/SZFSPC/apple/resolve/main/scripts/supervisord.conf
- Command line
-
hf download hf://spaces/SZFSPC/apple/scripts/supervisord.conf
-
curl -L -o supervisord.conf https://huggingface.co/spaces/SZFSPC/apple/resolve/main/scripts/supervisord.conf
3.48 kB
| [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 /root/dataset-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:backup-watchdog] | |
| environment=OPENCLAW_BACKUP_ENV_FILE_PATH=/root/.env.d/openclaw-backup.env,BACKUP_ENV_FILE_PATH=/root/.env.d/openclaw-backup.env | |
| command=/bin/bash -c 'BACKUP_ENV_FILE_PATH=/root/.env.d/openclaw-backup.env; source /root/.env.d/openclaw-backup.env 2>/dev/null || true; echo "[$(date -u +%%Y-%%m-%%dT%%H:%%M:%%SZ)] watchdog: waiting for restore to complete..."; waited=0; while [ ! -f /root/dataset-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=unexpected | |
| startsecs=15 | |
| startretries=3 | |
| 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 | |