keepalived: add ubus status
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 30 Jul 2024 05:53:22 +0000 (07:53 +0200)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Tue, 4 Feb 2025 12:48:09 +0000 (13:48 +0100)
commit25b156a71b86357e081318b9c7b7e689c72ad02d
treed1f9f18a466ecae9f8b0e9fa61811976fcc6b7da
parent35b614c43758cfcac53f54a392e841aff30c4f1b
keepalived: add ubus status

The hotplug scripts are called with every state change. When called, the
scripts are processed under '/etc/hotplug.d/keepalived'. This change adds
the functionality that the last state change of the keepalived can be
queried via the ubus.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/keepalived/Makefile
net/keepalived/files/etc/hotplug.d/keepalived/01-ubus [new file with mode: 0644]
net/keepalived/files/usr/libexec/keepalived/rpc/status.sh [new file with mode: 0644]