installmgr/etc/installmgr.service
2021-10-14 10:51:13 +02:00

26 lines
553 B
Desktop File

# installmgr systemd service
# Flask based
#
#
# A copier dans /etc/systemd/system/
# puis
# sudo systemctl daemon-reload
# sudo systemctl start installmgr
#
[Unit]
Description=Installmgr service for ScoDoc 9
After=network.target
#Requires={{postgresql}}
#PartOf={{postgresql}}
#StartLimitIntervalSec=0
[Service]
User=installmgr
Group=installmgr
WorkingDirectory=/opt/installmgr
Environment=FLASK_RUN_PORT=5010
ExecStart=/opt/installmgr/venv/bin/gunicorn -b localhost:8010 -w 2 installmgr:app
Restart=always
[Install]
WantedBy=multi-user.target