restart on failure

This commit is contained in:
Geno 2020-11-13 14:17:14 +01:00
parent 64b0a91383
commit d4ec5ff29f
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ WorkingDirectory=/opt/osp
Environment="VIRTUAL_ENV=/opt/osp-venv"
Environment="PATH=/opt/osp-venv/bin:/usr/local/bin:/usr/bin:/bin"
ExecStart=/opt/osp-venv/bin/gunicorn app:app -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 --bind 0.0.0.0:%i --reload --access-logfile /var/log/osp/access.log --error-logfile /var/log/osp/error.log
Restart=on-failure
RestartSec=5m
[Install]
WantedBy=multi-user.target