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

17 lines
442 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/celery -A repoapi worker \
--pidfile=/var/lib/repoapi/celery-worker.pid --loglevel=INFO
[Install]
WantedBy=multi-user.target