I'm on Centos 7.5.

Can't find it in:

 * /usr/lib/systemd/system
 * /usr/sbin/


I found it in

 * /etc/init.d/


I know for sure when I initially installed I was able to use:

 * service solr start/stop/restart
 * systemctl start/stop/restart solr.service


Lee


On 2024-05-27 11:51, Dmitri Maziuk wrote:
On 5/27/24 05:26, Lee Daniel wrote:

Can someone please advise?/

In lennartware /usr/lib/systemd/system is where startup scripts (usually) live. Find solr.service there and see what it does.

Depending on the distribution [/usr]/sbin/service may or may not be a wrapper script for either systemctl above, or the sysVinint scripts in /etc/init.d. If it's the latter then your pokes at systemctl are pointless.

Last but not least, if your actual solr startup script is in /opt/solr/bin/solr, that is what either/both of the above should call.

The proper fix, assuming you're not running on alpine or devuan or somesuch, is to make sure /usr/lib/systemd/system/solr.service runs the right script with the right options, and use systemctl to manage it.

Dima

Reply via email to