RHEL style init script - need pid file
Posted: 31 May 2012, 17:46
Hello,
similiar to this post viewtopic.php?p=53542#p53542 the thing we miss is a pid file for usage with monit. The difference with our case is: we are using red hat. RHEL release 6.2, just to be precise.
My colleage already tried to write a custom init script but failed. Then I tried to do so, but honestly, the provided "sfs2x-service" script does a lot of stuff I do not understand and some more things that are confusing to me, e.g. the shipped JRE and the way SF is started with a lot of parameters and some nohup usage that is not completely clear to me.
We are running a production environment for a customer with a multiple thousand users(commercial license), hence I'm afraid just to try out an own way of spawning smartfox (I assume all these extras are not meaningless).
Also, the script from the posting mentioned above was built for debian and I wasn't even able to turn it into a proper redhat style script (how to create a pid file?).
Now my head is smoking and I wonder maybe someone already has this thing working (might be as well a user or the smartfox developers themselves).
I found out that there was support for pid files in earlier versions of smartfox, but couldn't find anything for the 2x releases.
We really do need the pid file for monit to restart the server in case it crashes. Sadly this happens from time to time and the only reliable way for now is to manually restart smartfox as automatic restart without a pid file sometimes fails. Apart from the uncommodities of being awakened from the watchdog at night or being disrupted at meals this sometimes becomes a serious problem in cases where all our admins are unable to use the internet and the service is down for many hours(e.g. during weekends).
So... anyone out there has this thing working and is willing to share it? This would be really great.
In case that no script turns up this way, may I decently place a feature request at the smartfox development team to create one?
Thanks in advance for all help, hints or solutions.
Yours, Oliver
similiar to this post viewtopic.php?p=53542#p53542 the thing we miss is a pid file for usage with monit. The difference with our case is: we are using red hat. RHEL release 6.2, just to be precise.
My colleage already tried to write a custom init script but failed. Then I tried to do so, but honestly, the provided "sfs2x-service" script does a lot of stuff I do not understand and some more things that are confusing to me, e.g. the shipped JRE and the way SF is started with a lot of parameters and some nohup usage that is not completely clear to me.
We are running a production environment for a customer with a multiple thousand users(commercial license), hence I'm afraid just to try out an own way of spawning smartfox (I assume all these extras are not meaningless).
Also, the script from the posting mentioned above was built for debian and I wasn't even able to turn it into a proper redhat style script (how to create a pid file?).
Now my head is smoking and I wonder maybe someone already has this thing working (might be as well a user or the smartfox developers themselves).
I found out that there was support for pid files in earlier versions of smartfox, but couldn't find anything for the 2x releases.
We really do need the pid file for monit to restart the server in case it crashes. Sadly this happens from time to time and the only reliable way for now is to manually restart smartfox as automatic restart without a pid file sometimes fails. Apart from the uncommodities of being awakened from the watchdog at night or being disrupted at meals this sometimes becomes a serious problem in cases where all our admins are unable to use the internet and the service is down for many hours(e.g. during weekends).
So... anyone out there has this thing working and is willing to share it? This would be really great.
In case that no script turns up this way, may I decently place a feature request at the smartfox development team to create one?
Thanks in advance for all help, hints or solutions.
Yours, Oliver