<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I already submit an issue in<span> </span><a href="https://github.com/acassen/keepalived/issues/731" rel="nofollow noreferrer" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(0,89,153);text-decoration:none">keepalived github issue page</a> and stackoverflow. Paste again for more people's help.</p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I want to use Nginx to manager multiple https website, refer to<span> </span><a href="http://nginx.org/en/docs/http/configuring_https_servers.html" rel="nofollow noreferrer" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(0,89,153);text-decoration:none">nginx document</a><span> </span>(Name-based HTTPS servers section), one method is to assign a separate IP for every HTTPS servers. And in our environment, this is the only method.</p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Due to single-point issue, I want to use keepalived to manage master-backup Nginx node. The logic is: <br></p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">1. Setup master/backup nginx node <br></p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">2. Master nginx will assign multiple vip via keepalived <br></p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">3. Master nginx will be up, backup nginx is down. (due to backup nginx has no vip, start will fail)</p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"> 4. If master nginx is down, vip transfer to backup node, backup nginx start.</p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I test in Centos 7 with keepalived v1.3.5, but meet some issue.</p><h1 style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:bold;font-stretch:inherit;font-size:21px;line-height:1.3;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Configuration</h1><h2 style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:19px;line-height:1.3;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">master node</h2><pre class="gmail-lang-sh gmail-prettyprint gmail-prettyprinted" style="margin:0px 0px 1em;padding:5px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);display:block;color:rgb(57,51,24);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;background-color:rgb(239,240,241);white-space:inherit"><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">global_defs </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
   router_id LVS_DEVEL
</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">

vrrp_script chk_nginx </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    script </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"/usr/sbin/pidof nginx"</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    interval </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">3</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">!</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">weight </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">-</span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">5</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    rise </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">1</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    fall </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">2</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">

vrrp_instance VI_1 </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    state MASTER
    interface eth1
    virtual_router_id </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">51</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    priority </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">100</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    advert_int </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">1</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    authentication </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        auth_type PASS
        auth_pass </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">1111</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    virtual_ipaddress </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">192.168</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">2.16</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">192.168</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">2.17</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    track_script </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        chk_nginx
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">

    notify </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">etc</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">keepalived</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">notify_keepalived</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">sh
    notify_stop </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"systemctl stop nginx"</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span></code></pre><h2 style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:19px;line-height:1.3;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">backup node</h2><pre class="gmail-lang-sh gmail-prettyprint gmail-prettyprinted" style="margin:0px 0px 1em;padding:5px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);display:block;color:rgb(57,51,24);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;background-color:rgb(239,240,241);white-space:inherit"><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">global_defs </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
   router_id LVS_DEVEL
</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">

vrrp_script chk_nginx </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    script </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"/usr/sbin/pidof  nginx"</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    interval </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">3</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">!</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">weight </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">-</span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">5</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    rise </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">1</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    fall </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">2</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">

vrrp_instance VI_1 </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    state BACKUP
    interface eth1
    virtual_router_id </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">51</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    priority </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">96</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    advert_int </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">1</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    authentication </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        auth_type PASS
        auth_pass </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">1111</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    virtual_ipaddress </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">192.168</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">2.16</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">192.168</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">2.17</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
    track_script </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">{</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        chk_nginx
    </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">

    notify </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">etc</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">keepalived</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">notify_keepalived</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">sh
    notify_stop </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"systemctl stop nginx"</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">}</span></code></pre><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">check script:</p><pre class="gmail-lang-sh gmail-prettyprint gmail-prettyprinted" style="margin:0px 0px 1em;padding:5px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;width:auto;max-height:600px;overflow:auto;background-color:rgb(239,240,241);display:block;color:rgb(57,51,24);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;background-color:rgb(239,240,241);white-space:inherit"><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">$ cat </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">etc</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">keepalived</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">notify_keepalived</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">sh
</span><span class="gmail-com" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(133,140,147)">#!/bin/bash</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
TYPE</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">=</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">$1
NAME</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">=</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">$2
STATE</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">=</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">$3

echo $STATE </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">></span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)"> </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">tmp</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">/</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">k</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">.</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">log
</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">:</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
</span><span class="gmail-kwd" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(16,16,148)">case</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)"> $STATE </span><span class="gmail-kwd" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(16,16,148)">in</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"MASTER"</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">)</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)"> systemctl start nginx
                  exit </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">0</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
                  </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">;;</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"BACKUP"</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">)</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)"> systemctl stop nginx
                  exit </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">0</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
                  </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">;;</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"FAULT"</span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">)</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">  systemctl stop nginx
                  exit </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">0</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
                  </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">;;</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
        </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">*)</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">        echo </span><span class="gmail-str" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">"ipsec unknown state"</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
                  exit </span><span class="gmail-lit" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(125,39,39)">1</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
                  </span><span class="gmail-pun" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">;;</span><span class="gmail-pln" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(48,51,54)">
</span><span class="gmail-kwd" style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:rgb(16,16,148)">esac</span></code></pre><h1 style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:bold;font-stretch:inherit;font-size:21px;line-height:1.3;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">method 1</h1><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">If unset weight, keepalived startup will check nginx pid immediately, even I set interval and fall parameter. Master nginx won't enter master state, all node will enter fault state. No master will elect and no active nginx will come up.</p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><code style="margin:0px;padding:1px 5px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:13px;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;vertical-align:baseline;background-color:rgb(239,240,241);white-space:pre-wrap">
Dec 30 04:59:00 localhost systemd: Starting LVS and VRRP High Availability Monitor...
Dec 30 04:59:00 localhost Keepalived[20039]: Starting Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2
Dec 30 04:59:00 localhost Keepalived[20039]: Unable to resolve default script username 'keepalived_script' - ignoring
Dec 30 04:59:00 localhost Keepalived[20039]: Opening file '/etc/keepalived/keepalived.conf'.
Dec 30 04:59:00 localhost systemd: PID file /var/run/keepalived.pid not readable (yet?) after start.
Dec 30 04:59:00 localhost Keepalived[20040]: Starting Healthcheck child process, pid=20041
Dec 30 04:59:00 localhost Keepalived[20040]: Starting VRRP child process, pid=20042
Dec 30 04:59:00 localhost systemd: Started LVS and VRRP High Availability Monitor.
Dec 30 04:59:00 localhost Keepalived_healthcheckers[20041]: Opening file '/etc/keepalived/keepalived.conf'.
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: Registering Kernel netlink reflector
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: Registering Kernel netlink command channel
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: Registering gratuitous ARP shared channel
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: Opening file '/etc/keepalived/keepalived.conf'.
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: VRRP_Instance(VI_1) removing protocol VIPs.
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: WARNING - script `systemctl` resolved by path search to `/usr/bin/systemctl`. Please specify full path.
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: SECURITY VIOLATION - scripts are being executed but script_security not enabled.
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: Using LinkWatch kernel netlink reflector...
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: VRRP sockpool: [ifindex(3), proto(112), unicast(0), fd(10,11)]
Dec 30 04:59:00 localhost Keepalived_vrrp[20042]: /usr/sbin/pidof nginx exited with status 1
Dec 30 04:59:01 localhost Keepalived_vrrp[20042]: VRRP_Instance(VI_1) Now in FAULT state
Dec 30 04:59:03 localhost Keepalived_vrrp[20042]: /usr/sbin/pidof nginx exited with status 1
Dec 30 04:59:06 localhost Keepalived_vrrp[20042]: /usr/sbin/pidof nginx exited with status 1
</code></p><h1 style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:bold;font-stretch:inherit;font-size:21px;line-height:1.3;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">method 2</h1><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">If uncomment weigth, startup works fine. Master node assign vip and master nginx startup. Backup nginx is down.</p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">However, when I shutdown master nginx, master node priority (100-5) > backup node (96-5). Although master nginx is down, but vip still be in master node.</p><h1 style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:bold;font-stretch:inherit;font-size:21px;line-height:1.3;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">method 3</h1><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">set master weight -5, set backup weigth 2.</p><ol style="margin:0px 0px 1em 30px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;list-style:outside none decimal;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><li style="margin:0px 0px 0.5em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline">Startup keepalived, master node get vip, master nginx start. Backup nginx is down.</li><li style="margin:0px 0px 0.5em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline">Shutdown master nginx, master node priority 95 < backup node 96, backup node get vip, backup nginx start.</li><li style="margin:0px;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline">Shutdown backup nginx, master node priority 95 < backup node 96(98-2), backup still hold vip, no active nginx come up.</li></ol><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">For this scenario, program startup depends on vip, how to manage HA?</p><p style="margin:0px 0px 1em;padding:0px;border-color:currentcolor;border-style:none;border-width:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;vertical-align:baseline;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Thanks.</p></div>