1
0
forked from ScoDoc/ScoDoc
ScoDoc-Front/tools/etc/scodoc9.service

22 lines
574 B
Desktop File

# ScoDoc 9 systemd service
# Flask based
# a priori on ne dépend plus de postgresql ? XXX
# inspiré par https://blog.miguelgrinberg.com/post/running-a-flask-application-as-a-service-with-systemd
[Unit]
Description=ScoDoc 9 service
After=network.target
#Requires={{postgresql}}
#PartOf={{postgresql}}
#StartLimitIntervalSec=0
[Service]
User=scodoc
Group=scodoc
WorkingDirectory=/opt/scodoc
ExecStart=/opt/scodoc/venv/bin/gunicorn -b localhost:8000 -w 4 scodoc:app
Restart=always
# Environment=FLASK_CONFIG=production
Restart=always
[Install]
WantedBy=multi-user.target