Keepalived notify script not running

Kobi Rosenstein
Dec 24, 2023

--

This one was totally on me, but I didn’t see it anywhere else, so here goes:

I am using keepalived to bounce an IP between 2 rundeck application nodes. Since this is an active/passive situation, I have a cronjob that syncs rundeck data from the master to the backup node. I wanted keepalived to execute a `notify` which would change the cronjob to active on the new master and to passive on the new backup. But no matter what I did, it never worked. If I ran the notification script manually, passing parameters of course, it WOULD work.

Finally I realized my error: The notify script was not globally executable. The simple fix was just `chmod +X`.

--

--

Kobi Rosenstein
Kobi Rosenstein

Written by Kobi Rosenstein

Devops engineeer. This blog chronicles my “gotcha” moments — Each post contains an answer I would have like to have found when trawling google.

No responses yet