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