2018-09-23 22:13:43 +02:00
|
|
|
[Unit]
|
2018-09-23 23:30:26 +02:00
|
|
|
Description=DSpace Statistics Indexer
|
2018-09-23 22:13:43 +02:00
|
|
|
After=tomcat7.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=SOLR_SERVER=http://localhost:8081/solr
|
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 22:13:43 +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/python indexer.py
|
2018-09-23 22:13:43 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|