mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-21 22:05:02 +01:00
Add example systemd unit for statistics API
This commit is contained in:
parent
9e01a80011
commit
fb60133713
18
contrib/cgspace-statistics-api.service
Normal file
18
contrib/cgspace-statistics-api.service
Normal file
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=CGSpace Statistics API
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=SOLR_SERVER=http://localhost:8081/solr
|
||||
Environment=SOLR_CORE=statistics
|
||||
User=nobody
|
||||
Group=nogroup
|
||||
WorkingDirectory=/opt/ilri/cgspace-statistics-api
|
||||
ExecStart=/opt/ilri/cgspace-statistics-api/venv/bin/gunicorn \
|
||||
--bind 127.0.0.1:5000 \
|
||||
app:api
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s TERM $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user