From 74ff86ee3b5335de46201a1e8850828ccfb2a306 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 25 Sep 2018 01:10:14 +0300 Subject: [PATCH] contrib: Update environment settings in system units --- contrib/dspace-statistics-api.service | 5 ++++- contrib/dspace-statistics-indexer.service | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/contrib/dspace-statistics-api.service b/contrib/dspace-statistics-api.service index fc3d070..d29ad62 100644 --- a/contrib/dspace-statistics-api.service +++ b/contrib/dspace-statistics-api.service @@ -3,7 +3,10 @@ Description=DSpace Statistics API After=network.target [Service] -Environment=SOLR_SERVER=http://localhost:8081/solr +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 diff --git a/contrib/dspace-statistics-indexer.service b/contrib/dspace-statistics-indexer.service index 5e80a3c..bc3e0cf 100644 --- a/contrib/dspace-statistics-indexer.service +++ b/contrib/dspace-statistics-indexer.service @@ -4,6 +4,10 @@ After=tomcat7.target [Service] Environment=SOLR_SERVER=http://localhost:8081/solr +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