TESTINGDB / supervisord.conf
sarveshpatel's picture
Update supervisord.conf
b25e893 verified
raw
history blame contribute delete
917 Bytes
[supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
loglevel=info
[program:postgresql]
command=/usr/lib/postgresql/15/bin/postgres -D /data/postgres -c listen_addresses=localhost -c port=5432
user=postgres
autostart=true
autorestart=true
priority=10
stdout_logfile=/var/log/supervisor/postgres.log
stderr_logfile=/var/log/supervisor/postgres_err.log
[program:pgweb]
command=/usr/local/bin/pgweb --bind=0.0.0.0 --listen=7860 --host=localhost --port=5432 --user=postgres --db=appdb --skip-open
autostart=true
autorestart=true
priority=20
startsecs=10
stdout_logfile=/var/log/supervisor/pgweb.log
stderr_logfile=/var/log/supervisor/pgweb_err.log
[program:sync_manager]
command=python3 /app/sync_manager.py
autostart=true
autorestart=true
priority=30
startsecs=20
stdout_logfile=/var/log/supervisor/sync.log
stderr_logfile=/var/log/supervisor/sync_err.log