mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-12-22 20:52:19 +01:00
Alan Orth
90d7a452bd
An example systemd service unit for the indexer and an accompanying timer unit.
15 lines
346 B
Desktop File
15 lines
346 B
Desktop File
[Unit]
|
|
Description=CGSpace Statistics Indexer
|
|
After=tomcat7.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/python indexer.py
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|