forked from ScoDoc/installmgr
systemd service
This commit is contained in:
parent
11ea527986
commit
d714f5d8a7
26
etc/installmgr.service
Normal file
26
etc/installmgr.service
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# installmgr systemd service
|
||||||
|
# Flask based
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# A copier dans /etc/systemd/system/
|
||||||
|
# puis
|
||||||
|
# sudo systemctl daemon-reload
|
||||||
|
# sudo systemctl start scodoc9
|
||||||
|
#
|
||||||
|
[Unit]
|
||||||
|
Description=Installmgr service for ScoDoc 9
|
||||||
|
After=network.target
|
||||||
|
#Requires={{postgresql}}
|
||||||
|
#PartOf={{postgresql}}
|
||||||
|
#StartLimitIntervalSec=0
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=scodoc
|
||||||
|
Group=scodoc
|
||||||
|
WorkingDirectory=/opt/installmgr
|
||||||
|
Environment=FLASK_RUN_PORT=8010
|
||||||
|
ExecStart=/opt/installmgr/venv/bin/gunicorn -b localhost:8010 -w 1 installmgr:app
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user