poulpe/provisioning/worker.service

20 lines
433 B
SYSTEMD
Raw Normal View History

[Unit]
Description="Gestion Événementiel - Worker"
After=syslog.target
After=network.target
[Service]
Type=simple
User=vagrant
Group=vagrant
TimeoutSec=300
WorkingDirectory=/vagrant
Environment="DJANGO_SETTINGS_MODULE={{SETTINGS}}"
Environment="DBNAME={{DBNAME}}"
Environment="DBUSER={{DBUSER}}"
Environment="DBPASSWD={{DBPASSWD}}"
ExecStart=/home/vagrant/venv/bin/python manage.py runworker
[Install]
WantedBy=multi-user.target