mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-10 16:55:45 +01:00
21 lines
566 B
Desktop File
21 lines
566 B
Desktop File
[Unit]
|
|
Description=DSpace Statistics API
|
|
After=network.target
|
|
|
|
[Service]
|
|
Environment=DATABASE_NAME=dspacestatistics
|
|
Environment=DATABASE_USER=dspacestatistics
|
|
Environment=DATABASE_PASS=dspacestatistics
|
|
Environment=DATABASE_HOST=localhost
|
|
User=nobody
|
|
Group=nogroup
|
|
WorkingDirectory=/opt/ilri/dspace-statistics-api
|
|
ExecStart=/opt/ilri/dspace-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
|