[ClusterLabs] Triggering script on cib change

Jehan-Guillaume de Rorthais jgdr at dalibo.com
Wed Sep 16 17:51:52 EDT 2020


On Wed, 16 Sep 2020 19:57:12 +0000 (UTC)
Strahil Nikolov <hunter86_bg at yahoo.com> wrote:

> Theoretically the CIB is a file on each node,so a script that is looking for
> that file's timestamps or in the cluster's logs should work.

Good one.

This could be simple with a daemon relaying on inotify. Or even simpler,
don't write a daemon, use a systemd path setup (relaying on inotify as well)
that will do the daemon part and call a script for you:

https://www.freedesktop.org/software/systemd/man/systemd.path.html

++


More information about the Users mailing list