16 lines
447 B
Desktop File
16 lines
447 B
Desktop File
[Unit]
|
|
Description=Celery Worker for Django project
|
|
After=network.target redis.service postgresql.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=www-data
|
|
Group=www-data
|
|
EnvironmentFile=/var/www/project/.env
|
|
WorkingDirectory=/var/www/project/src
|
|
ExecStart=/var/www/project/venv/bin/celery -A config worker --loglevel=INFO --pidfile=/run/celery/worker.pid
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
PIDFile=/run/celery/worker.pid
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |