Jackrabbit-startup-script
Jackrabbit-startup-script copied to clipboard
Improve status check
My initial problem is that after a crash, the PID file is not removed and jackrabbit won't start at boot.
I added a is_started function that makes a curl call and test if the response contains the "Jackrabbit" word. Not very elegant but that's the best solution I found to test if :
- something is running on the jackrabbit port
- it is jackrabbit
This PR was inspired by https://github.com/sixty-nine/Jackrabbit-startup-script/issues/2