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
ExecStartPre=/usr/bin/pg_isready -h -U crans -d django
ExecStart=/usr/bin/gunicorn wsgi:application --pid=/run/gunicorn/ --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