diff --git a/supervisord.conf b/supervisord.conf index 6d9b8ee2..b515bdcd 100644 ---…
- User
diff --git a/supervisord.conf b/supervisord.conf index 6d9b8ee2..b515bdcd 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -17,40 +17,40 @@ loglevel=debug ; info, debug, warn, trace pidfile=/tmp/supervisord/supervisord.pid ; pidfile location childlogdir=%(ENV_HOME)s/logs/ ; where child log files will live
-[program:ssh-agent] -command=bash -c "rm /tmp/ssh-agent.sock -f && /usr/bin/ssh-agent -d -a /tmp/ssh-agent.sock" -priority=1 -autorestart=true +;[program:ssh-agent] +;command=bash -c "rm /tmp/ssh-agent.sock -f && /usr/bin/ssh-agent -a /tmp/ssh-agent.sock" +;priority=1 +;autorestart=true
[program:rqworker_default] command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST)s:6379 -t 0 -- bash -ic
"exec python3 %(ENV_HOME)s/manage.py rqworker -v 3 default" -environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" +;environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" numprocs=2 process_name=rqworker_default_%(process_num)s[program:rqworker_low] command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST)s:6379 -t 0 -- bash -ic
"exec python3 %(ENV_HOME)s/manage.py rqworker -v 3 low" -environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" +;environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" numprocs=1[program:git_status_updater] command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST)s:6379 -t 0 -- bash -ic
"python3 ~/manage.py update_git_states" -environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" +;environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" numprocs=1[program:rqscheduler] command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST)s:6379 -t 0 -- bash -ic
"python3 /opt/venv/bin/rqscheduler --host %(ENV_CVAT_REDIS_HOST)s -i 30" -environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" +;environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock" numprocs=1-[program:clamav_update] -command=bash -c "if [ "${CLAM_AV}" = 'yes' ]; then /usr/bin/freshclam -d \
- -l %(ENV_HOME)s/logs/freshclam.log --foreground=true; fi"
-numprocs=1
+;[program:clamav_update]
+;command=bash -c "if [ "${CLAM_AV}" = 'yes' ]; then /usr/bin/freshclam -d
+; -l %(ENV_HOME)s/logs/freshclam.log --foreground=true; fi" +;numprocs=1
[program:runserver] ; Here need to run a couple of commands to initialize DB and copy static files. @@ -59,11 +59,13 @@ numprocs=1 ; with docker cache. Thus it is necessary to run collectstatic here for such ; apps. command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_POSTGRES_HOST)s:5432 -t 0 -- bash -ic \
- "rm -f /tmp/cvat-server/httpd.pid && python3 ~/manage.py migrate && \
- "rm -f /tmp/cvat-server/httpd.pid && \
- ;python3 ~/manage.py migrate && \
- ;python3 ~/manage.py createsuperuser --no-input;
python3 ~/manage.py collectstatic --no-input &&
exec python3 $HOME/manage.py runmodwsgi --log-to-terminal --port 8080
--limit-request-body 1073741824 --log-level INFO --include-file ~/mod_wsgi.conf %(ENV_DJANGO_MODWSGI_EXTRA_ARGS)s --locale %(ENV_LC_ALL)s --server-root /tmp/cvat-server"
- -l %(ENV_HOME)s/logs/freshclam.log --foreground=true; fi"
-numprocs=1
+;[program:clamav_update]
+;command=bash -c "if [ "${CLAM_AV}" = 'yes' ]; then /usr/bin/freshclam -d
- Assistant
In this Git patch, several changes have been made to the
supervisord.conffile:- The
[program:ssh-agent]section has been commented out, indicating that thessh-agentprogram will not be managed by Supervisor. - The
environmentvariables settingSSH_AUTH_SOCKhave been commented out for the[program:rqworker_default],[program:rqworker_low],[program:git_status_updater],[program:rqscheduler], and[program:runserver]sections, indicating that theSSH_AUTH_SOCKenvironment variable is not being set for these programs. - The
[program:clamav_update]section has been commented out, indicating that theclamav_updateprogram will not be managed by Supervisor.
- The