<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Hello,<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I am wondering what steps the upgrade through official packages of an existing nginx process follow.<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">I am ujsing official Debian packages.<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
More precisely, when the new binary is installed through the package system, what signal(s) is(are) sent to migrate rfrom the old to the new binary?<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
Is it a simple stop/start?<br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Or does the package upgrade follows steps from a simple <a href="http://nginx.org/en/docs/control.html#upgrade">on-the-fly upgrade</a>? By it, I mean the following steps:<br>
1°) Configuration check, if unsuccessful upgrade fails<br>2°) USR2 to the old master<br>3°) Start of the new binary, if failed HUP to the old master process and upgrade fails<br>4°) QUIT to the old master<br><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">
Of course, no edge problem such as the rtsig method would be supported, nor any check for the new master process working properly (spawning childs, answering requests) since that is maybe beyond the scope of a simple automated package upgrade script, and some of the checks might require human eyes and expertise.<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">That would ensure no downtime when official upgrades (including security updates) are done.<br>
</div><div class="gmail_default" style="font-size:small;color:rgb(51,51,153)">Is all that already implemented?<br></div><font size="1"><span style="color:rgb(102,102,102)">---<br></span><b><span style="color:rgb(102,102,102)">B. R.</span></b><span style="color:rgb(102,102,102)"></span></font>
</div>