[1.2.2] Executing something on failover



  • I'd like to execute a bunch of scripts when the failover gets triggered, but unfortunately I haven't been able to find the function that gets ran every time an element in the pool switches states.

    What I did find is that /usr/local/sbin/slbd.sh can return a gateway and an exit code for the ping, and in that file I can perhaps add something like "If exit code is 1 then check to what interface that gateway corresponds, and do x" but I'm not sure that would be the best approach.

    So.. ideas?



  • You can customize your pfSense but there is nothing supported on that since pfSense is for remove the hackiness you do with a usual box.
    For the matter yes you can modify slbd.sh to do what you want just return the exit status of ping.


Log in to reply