Open ciroiriarte opened 1 year ago
Yes, that seems fairly possible, and could either be done by allowing for a list of commands to run on link changes, or just supporting a "post" script that is run after links change, and the restart logic could be in there. Or even something like an "/etc/drbdlinks/post.d" and it would run any scripts found in there.
This is not something I'm currently able to work on I'm afraid.
Would it be possible to extend the restart/reload logic present today for syslog/syslog-ng/rsyslog & cron to any arbitrary service?