Verified Commit 07193f58 authored by Ziirish's avatar Ziirish

use a dedicated beat process

parent 9076c73d
......@@ -127,6 +127,7 @@ EOF
sed -r "s'@BURPUI_CONFIG@'$BURPUI_CONFIG';s'@BURPUI_VERBOSE@'$BURPUI_VERBOSE'" /etc/supervisor.d/gunicorn.ini.sample >/etc/supervisor.d/gunicorn.ini
sed -r "s'@BURPUI_CONFIG@'$BURPUI_CONFIG'" /etc/supervisor.d/bui-celery.ini.sample >/etc/supervisor.d/bui-celery.ini
sed -r "s'@BURPUI_CONFIG@'$BURPUI_CONFIG'" /etc/supervisor.d/bui-celery-beat.ini.sample >/etc/supervisor.d/bui-celery-beat.ini
sed -r "s'@BURPUI_MONITOR_CONFIG@'$BURPUI_MONITOR_CONFIG'" /etc/supervisor.d/bui-monitor.ini.sample >/etc/supervisor.d/bui-monitor.ini
sed -r "s'@GUNICORN_WORKERS@'$GUNICORN_WORKERS';s'@GUNICORN_WORKER_CLASS@'$GUNICORN_WORKER_CLASS'" /etc/burp-ui/burpui_gunicorn.py.sample >/etc/burp-ui/burpui_gunicorn.py
......
......@@ -89,7 +89,20 @@ cat > /etc/supervisor.d/bui-celery.ini.sample <<EOF
[program:bui-celery]
priority=20
directory=/tmp
command=/usr/local/bin/bui-celery -c @BURPUI_CONFIG@ --beat -s /var/lib/burpui/celerybeat-schedule
command=/usr/local/bin/bui-celery -c @BURPUI_CONFIG@
user=burpui
autostart=false
autorestart=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
EOF
# configure celery beat template
cat > /etc/supervisor.d/bui-celery-beat.ini.sample <<EOF
[program:bui-celery-beat]
priority=20
directory=/tmp
command=/usr/local/bin/bui-celery -c @BURPUI_CONFIG@ -t beat -s /var/lib/burpui/celerybeat-schedule
user=burpui
autostart=false
autorestart=true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment