Commit 923cc896 authored by Hamza Dely's avatar Hamza Dely

systemd vérifie que la base PG est joignable au démarrage de l'intranet

parent 2c3a1494
......@@ -20,6 +20,7 @@ User=root
Group=root
PIDFile=/run/gunicorn/intranet2.pid
WorkingDirectory=/localhome/django/intranet-dev/
ExecStartPre=/usr/bin/pg_isready -h thot.adm.crans.org -U crans -d django
ExecStart=/usr/bin/gunicorn wsgi:application --pid=/run/gunicorn/intranet2.pid --name intranet2 --user www-data --group www-data --daemon --log-file /var/log/gunicorn/intranet2.log --log-level=info --bind=unix:///tmp/gunicorn-intranet.sock --workers=1
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment