2021-09-18 18:01:40 +02:00
|
|
|
# installmgr systemd service
|
|
|
|
# Flask based
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# A copier dans /etc/systemd/system/
|
|
|
|
# puis
|
|
|
|
# sudo systemctl daemon-reload
|
2021-09-18 21:20:05 +02:00
|
|
|
# sudo systemctl start installmgr
|
2021-09-18 18:01:40 +02:00
|
|
|
#
|
|
|
|
[Unit]
|
|
|
|
Description=Installmgr service for ScoDoc 9
|
|
|
|
After=network.target
|
|
|
|
#Requires={{postgresql}}
|
|
|
|
#PartOf={{postgresql}}
|
|
|
|
#StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
[Service]
|
2021-10-14 10:51:13 +02:00
|
|
|
User=installmgr
|
|
|
|
Group=installmgr
|
2021-09-18 18:01:40 +02:00
|
|
|
WorkingDirectory=/opt/installmgr
|
2021-09-18 18:03:37 +02:00
|
|
|
Environment=FLASK_RUN_PORT=5010
|
2021-09-18 22:36:55 +02:00
|
|
|
ExecStart=/opt/installmgr/venv/bin/gunicorn -b localhost:8010 -w 2 installmgr:app
|
2021-09-18 18:01:40 +02:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|