if [ -f $PIDFILE ]; then
PID=`cat $PIDFILE`
echo $NAME already running: $PID
else
This should be changed to check the process list for the process ID in question, verify it's a java process running solr.jar, and if that check isn't successful remove the stale PIDFILE and start solr.
I've been burned by running service solr start returning "running" when it's not actually running.
This should be changed to check the process list for the process ID in question, verify it's a java process running solr.jar, and if that check isn't successful remove the stale PIDFILE and start solr.
I've been burned by running service solr start returning "running" when it's not actually running.