<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-2022-jp"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"MS PGothic";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
        {font-family:"\@MS PGothic";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to set a recovery policy for rabbitMQ windows service.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Installing rabbitMQ as a windows service sets erlsrv.exe as the internal executable.<o:p></o:p></p><p class=MsoNormal>I set the OnFail option of Erlang emulator to restart.<o:p></o:p></p><p class=MsoNormal>I set windows policy for erlsvr.exe to restart on fail.<o:p></o:p></p><p class=MsoNormal>Starting the service will start the erlsvr.exe process which then spawns erl.exe which is the actual process running rabbitMQ.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Killing erl.exe invokes the OnFail (does not alerts windows cause the windows recovery policy is on erlsvr.exe) and restarts rabbitMQ, which is great.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Killing erlsvr.exe does not stop erl.exe (meaning rabbitMQ still running) but does alert windows that then tries to restart erlsvr.exe<o:p></o:p></p><p class=MsoNormal>When erlsvr.exe is started again, it tries to spawn erl.exe again and fails because it is already running, failing erlsvr.exe completely, recovery failed.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Help please <span style='font-family:Wingdings'>J</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='border-collapse:collapse'><tr><td width=153 style='width:115.0pt;border:none;border-right:solid #D5D5D5 1.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:16.0pt;text-autospace:none'><b><span style='font-family:"Arial","sans-serif";color:#1A263F'>Lior Barnea</span></b><span style='font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td><td width=225 style='width:169.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:16.0pt;text-autospace:none'><b><span style='font-family:"Arial","sans-serif";color:#1A263F'>Developer</span></b><span style='font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td></tr><tr><td width=153 style='width:115.0pt;border:none;border-right:solid #D5D5D5 1.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:5.0pt;text-autospace:none'><span style='font-size:5.0pt;font-family:"Arial","sans-serif";color:#1A263F'> </span><span style='font-size:16.0pt;font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td><td width=225 style='width:169.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:5.0pt;text-autospace:none'><span style='font-size:5.0pt;font-family:"Arial","sans-serif";color:#1A263F'> </span><span style='font-size:16.0pt;font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td></tr><tr><td width=153 style='width:115.0pt;border:none;border-right:solid #D5D5D5 1.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:16.0pt;text-autospace:none'><b><span style='font-family:"Arial","sans-serif";color:#1A263F'>3i-MIND</span></b><span style='font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td><td width=225 style='width:169.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:13.0pt;text-autospace:none'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#606261'>T. 074-719-2884</span><span style='font-size:10.0pt;font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td></tr><tr><td width=153 style='width:115.0pt;border:none;border-right:solid #D5D5D5 1.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:16.0pt;text-autospace:none'><b><span style='font-size:14.0pt;font-family:"Arial","sans-serif";color:#1F284A'>●</span></b><b><span style='font-size:14.0pt;font-family:"Arial","sans-serif";color:#9C9F9E'>●</span></b><b><span style='font-size:14.0pt;font-family:"Arial","sans-serif";color:#ADC52A'>●</span></b><span style='font-size:16.0pt;font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td><td width=225 style='width:169.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:13.0pt;text-autospace:none'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#606261'>M.</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#6D6D6D'>054-816-7341</span><span style='font-size:10.0pt;font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td></tr><tr><td width=153 style='width:115.0pt;border:none;border-right:solid #D5D5D5 1.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:13.0pt;text-autospace:none'><a href="www.3i-mind.com"><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'>www.3i-mind.com</span></a><span style='font-size:10.0pt;font-family:"MS PGothic","sans-serif"'><o:p></o:p></span></p></td><td width=225 style='width:169.0pt;padding:0in 5.4pt 0in 5.4pt'><p class=MsoNormal style='line-height:16.0pt;text-autospace:none'><u><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#0021FF'>barnea@3i-mind.com</span></u><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>