Commit 5313d2fb authored by Chris Lamb's avatar Chris Lamb 💬

Fixup systemd service files.

parent 4c02b903
Pipeline #48310 passed with stages
in 10 minutes and 17 seconds
......@@ -10,11 +10,13 @@ User=www-data
Group=www-data
Restart=always
PIDFile=/run/celery.pid
RuntimeDirectory=celery
PIDFile=/run/celery/celery.pid
PermissionsStartOnly=true
ExecStartPre=-/usr/bin/install -o www-data -g www-data -d /var/lib/celery
Environment=PYTHONPATH={{ base_dir }}
ExecStart={{ base_dir }}/virtualenv/bin/celery -A celery worker --app trydiffoscope.celery_app:app --loglevel=info --concucrrency=1 --beat --scheduler=/var/lib/celery/schedule --pidfile=/run/celery.pid
ExecStart={{ base_dir }}/virtualenv/bin/celery -A celery worker --app trydiffoscope.celery_app:app --loglevel=info --concurrency=1 --beat --pidfile=/run/celery/celery.pid
PrivateTmp=true
......@@ -10,10 +10,12 @@ User=www-data
Group=www-data
Restart=always
PIDFile=/run/gunicorn.pid
RuntimeDirectory=gunicorn
PIDFile=/run/gunicorn/gunicorn.pid
Environment=PYTHONPATH={{ base_dir }}
ExecStart={{ base_dir }}/virtualenv/bin/gunicorn --workers=4 --max-requests=250 --log-level=info --preload --pid=/run/gunicorn.pid {{ project_name }}.wsgi
ExecStart={{ base_dir }}/virtualenv/bin/gunicorn --workers=4 --max-requests=250 --log-level=info --preload --pid=/run/gunicorn/gunicorn.pid {{ project_name }}.wsgi
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
......
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