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