From e779db1fc570689a1e7e90f009e20f33aa1e9b2f Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 28 Nov 2024 18:55:34 +0100 Subject: [PATCH] full path in the systemd unit. --- templates/solr.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/solr.service.j2 b/templates/solr.service.j2 index ed9f434..44ea65e 100644 --- a/templates/solr.service.j2 +++ b/templates/solr.service.j2 @@ -24,8 +24,8 @@ Type=forking User=solr Environment=SOLR_INCLUDE=/etc/default/solr.in.sh Environment=RUNAS=solr -ExecStart=${SOLR_INSTALL_DIR}/bin/solr start -ExecStop=${SOLR_INSTALL_DIR}/bin/solr stop +ExecStart={{ solr_server_dir }}/bin/solr start +ExecStop={{ solr_server_dir }}/bin/solr stop Restart=on-failure RestartSec=3s TimeoutSec=180s