forked from DGNum/gestioCOF
Vagrant: toutes les units systemd sont là
This commit is contained in:
parent
df222f18a3
commit
7f58b5fa00
9 changed files with 49 additions and 20 deletions
17
provisioning/systemd/daphne.service
Normal file
17
provisioning/systemd/daphne.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
Description="GestioCOF - Daphne"
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=vagrant
|
||||
Group=vagrant
|
||||
TimeoutSec=300
|
||||
WorkingDirectory=/vagrant
|
||||
Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev"
|
||||
ExecStart=/home/vagrant/venv/bin/daphne \
|
||||
-u /srv/gestiocof/gestiocof.sock \
|
||||
cof.asgi:channel_layer
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
8
provisioning/systemd/rappels.service
Normal file
8
provisioning/systemd/rappels.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Envoi des mails de rappel des spectales BdA
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=vagrant
|
||||
Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev"
|
||||
ExecStart=/home/vagrant/venv/bin/python /vagrant/manage.py sendrappels
|
9
provisioning/systemd/rappels.timer
Normal file
9
provisioning/systemd/rappels.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Envoi des mails de rappel des spectales BdA
|
||||
|
||||
[Timer]
|
||||
OnBootSec=10min
|
||||
OnUnitActiveSec=3h
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
8
provisioning/systemd/reventes.service
Normal file
8
provisioning/systemd/reventes.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Envoi des mails de BdA-Revente
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=vagrant
|
||||
Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev"
|
||||
ExecStart=/home/vagrant/venv/bin/python /vagrant/manage.py manage_reventes
|
9
provisioning/systemd/reventes.timer
Normal file
9
provisioning/systemd/reventes.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Envoi des mails de BdA-Revente
|
||||
|
||||
[Timer]
|
||||
OnBootSec=15min
|
||||
OnUnitActiveSec=15min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
16
provisioning/systemd/worker.service
Normal file
16
provisioning/systemd/worker.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description="GestioCOF"
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=vagrant
|
||||
Group=vagrant
|
||||
TimeoutSec=300
|
||||
WorkingDirectory=/vagrant
|
||||
Environment="DJANGO_SETTINGS_MODULE=cof.settings.dev"
|
||||
ExecStart=/home/vagrant/venv/bin/python manage.py runworker
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue