Hi, /r/linuxadmin! Thanks for all of the help last time, but I'm back again with a different part of the same problem.
While my superior tries to figure out what exactly is wrong with it, I've been tasked with making sure our Solr does not hang, and to kill then restart it when it does.
Only I've run into a frustrating problem. I abandoned the Python script I made, assuming that was the problem, only to run into it again when I made it in Bash.
The script runs fine now in the cron, however when it runs the java file, the script immediately hangs and does not run any more until the java file is killed, judging by the log output. Any output that was going to be logged does not appear until after Solr's killed, and then it just magically shows up in the log like nothing was wrong. How do I fork the java file out seperately or something, so I can continue to monitor and restart it?
Here is my script, any help?
[link] [4 comments]