t10 / supervisord.conf
azzr's picture
azzr HF staff
Duplicate from giskardai/giskard
d85d266 verified
[supervisord]
directory=%(ENV_GSK_RUN)s/run
pidfile=%(ENV_GSK_RUN)s/run/supervisord.pid
logfile=%(ENV_GSK_RUN)s/run/supervisord.log
nodaemon=true
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[unix_http_server]
file = %(ENV_GSK_RUN)s/run/svd.sock
username = giskard
password = giskard
[supervisorctl]
serverurl = unix://%(ENV_GSK_RUN)s/run/svd.sock
username = giskard
password = giskard
[program:backend]
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
autorestart=true
redirect_stderr=true
startsecs=5
command=bash -c 'sleep 3 && java -jar %(ENV_GSK_DIST_PATH)s/backend/giskard.jar'
[program:db]
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
autorestart=true
redirect_stderr=true
stopsignal=INT
startsecs=5
command=/bin/bash %(ENV_GSK_DIST_PATH)s/start-db.sh
[program:worker]
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
autorestart=true
redirect_stderr=true
startsecs=5
command=bash -c 'python -m giskard.cli worker stop -s && python -m giskard.cli worker start -s --parallelism 2'
[program:frontend]
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
autorestart=true
redirect_stderr=true
startsecs=5
priority=0
command=/bin/bash %(ENV_GSK_DIST_PATH)s/start-frontend.sh