
This adds a basic service file for celeryd and associated bits to install it on Xenial and beyond. Change-Id: I58ab956832acabf9e5af5f815e37ed1eb365a649
15 lines
319 B
Plaintext
15 lines
319 B
Plaintext
[Unit]
|
|
Description=Celery Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www-data
|
|
Group=www-data
|
|
WorkingDirectory=/srv/askbot-site/config
|
|
ExecStart=/usr/askbot-env/bin/python manage.py celeryd -c 5 --maxtasksperchild=1000 --time-limit=30
|
|
ExecStop=/bin/kill -INT $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|