[Unit] Description=DSpace Statistics API After=network.target [Service] Environment=SOLR_SERVER=http://localhost:8081/solr Environment=SOLR_CORE=statistics 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