Hey Jan,

Thanks for the reply.

Above in my replies, I mentioned trying those commands and they were not working. As Shawn may have suggested that I had probably overridden them, which I have no idea how.

*My original point was:*

 * My displeasure in running solr as root. I would run it using
   `/solr/bin/solr start -force/`.
 * Then I mentioned `/sudo service solr start/` and `/sudo systemctl
   start/` don't work for me.
 * When I use those commands they appear to start from the cli but the
   process ID can not be found and the Apache solr status indicates
   it's not running. It would appear it start's and stops. With nothing
   in the logs.


*Current State:*

 * If I use `/solr/bin/solr start` I get an error:/
     o /ERROR: Logs directory /opt/solr-9.5.0/server/logs could not be
       created. Exiting
       /


*My Goal:*

 * Runing Solr without using -force
 * Now that I am working on setting up SSL, how would I run it using
   `/sudo service solr start/` and `/sudo systemctl start/` on a
   different port.
     o I imagine having to set up a default port in solr.in.sh.

Thanks

On 2024-05-28 03:26, Jan Høydahl wrote:
Hi,

If using "sudo service solr start/stop" works for you, then what is your pain 
point? Please explain.
As Shawn points out, the systed start script takes care of running the process under the 
"solr" user.

Jan

28. mai 2024 kl. 04:09 skrev Dmitri Maziuk<dmitri.maz...@gmail.com>:

On 5/27/24 14:43, Lee Daniel wrote:
I'm on Centos 7.5.
Can't find it in:
  * /usr/lib/systemd/system
  * /usr/sbin/
I found it in
  * /etc/init.d/
/etc/init.d/solr [start|stop|restart] should work, then.

I forget how it works in centos 7, IIRC there was some kind of systemd-sysvinit 
rpm responsible for linking systemctl to /etc/init.d scripts...

Ditch centos 7, upgrade to alma 9 if you have to stay on redhat-flavoured 
koolaid.

Dima

Reply via email to