20 lines
499 B
SYSTEMD
20 lines
499 B
SYSTEMD
|
Description="Gestion Événementiel - Daphne"
|
||
|
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/daphne -u /srv/GE/GE.sock \
|
||
|
evenementiel.asgi:channel_layer
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|