You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
repoapi/debian/repoapi.repoapi-worker.service

16 lines
449 B

[Unit]
Description=Celery Service
After=network.target rabbitmq-server.service
[Service]
Type=simple
User=www-data
Group=www-data
Environment=DJANGO_SETTINGS_MODULE=repoapi.settings.prod
PIDFile=/var/lib/repoapi/celery-worker.pid
WorkingDirectory=/usr/share/repoapi
ExecStart=/var/lib/repoapi/venv_prod/bin/python ./manage.py celery worker \
--pidfile=/var/lib/repoapi/celery-worker.pid --loglevel=INFO
[Install]
WantedBy=multi-user.target