2018-09-23 06:50:04 +02:00
|
|
|
[Unit]
|
2018-09-23 22:02:21 +02:00
|
|
|
Description=DSpace Statistics API
|
2018-09-23 06:50:04 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2018-09-25 00:10:14 +02:00
|
|
|
Environment=DATABASE_NAME=dspacestatistics
|
|
|
|
Environment=DATABASE_USER=dspacestatistics
|
|
|
|
Environment=DATABASE_PASS=dspacestatistics
|
|
|
|
Environment=DATABASE_HOST=localhost
|
2018-09-23 06:50:04 +02:00
|
|
|
User=nobody
|
|
|
|
Group=nogroup
|
2018-10-23 13:34:29 +02:00
|
|
|
WorkingDirectory=/var/lib/dspace-statistics-api
|
|
|
|
ExecStart=/var/lib/dspace-statistics-api/venv/bin/gunicorn \
|
2018-09-23 22:02:21 +02:00
|
|
|
--bind 127.0.0.1:5000 \
|
2018-10-27 15:05:21 +02:00
|
|
|
dspace_statistics_api.app
|
2018-09-23 06:50:04 +02:00
|
|
|
ExecReload=/bin/kill -s HUP $MAINPID
|
|
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|