# --- SERVICE SLOT {{SLOT_NUM}} ---
vrrp_script chk_svc_{{SLOT_NUM}} {
    script "/checks/check_services.sh {{SVC_NAME}} {{SVC_DEP}}"
    interval 2
    weight -60
}

vrrp_instance VI_LXC{{LXC_NUM}}_S{{SLOT_NUM}} {
    state {{STATE}}
    interface eth0
    virtual_router_id {{LXC_NUM}}{{SLOT_NUM}}
    priority {{PRIORITY}}
    unicast_peer { 
        {{PEER}} 
    }

    authentication {
        auth_type PASS
        auth_pass {{AUTH_PASS}}
    }

    virtual_ipaddress { 
        {{SVC_VIP}}/24 
    }
    
    track_script { 
        chk_svc_{{SLOT_NUM}} 
    }
}