ejabberd - Comments for "Windows service - self healing options?" https://www.ejabberd.im/node/3460 en Am trying this option https://www.ejabberd.im/node/3460#comment-54166 <p>I stopped, then restarted the service with the using the "-onfail restart" you mentioned, and also added it to the startup parameters in Windows services for when the server restarts. The jabber service has not otherwise stopped recently, but when it does I will report back on the success/failure for future reference. Thanks for your reply!</p> Tue, 14 Apr 2009 01:08:11 +0000 Jim Schuuz comment 54166 at https://www.ejabberd.im Try to set OnFail=restart https://www.ejabberd.im/node/3460#comment-54152 <p>I found an option in Erlang/OTP, but it needs to be tested before included in the next installers. I've reported the option, in case it is useful, in <noindex><a href="https://support.process-one.net/browse/EJAB-908" rel="nofollow" >Define the Windows service OnFail=restart</a></noindex>.</p> <p>In your case, maybe you can enable that option in your ejabberd's Windows service. if you find where the program erlsrv.exe is installed, you could run it with this command line to set the option:</p> <pre> erlsrv set ejabberd0123456 -onfail restart </pre><p>You need to replace ejabberd0123456 with the Windows service name in your installation.</p> <p>Notice that I didn't try that. I just read the documentation :) So, if you try this, please report if it helps or not.</p> Thu, 09 Apr 2009 19:37:00 +0000 mfoss comment 54152 at https://www.ejabberd.im