linsomniac / drbdlinks

A helper for DRBD which makes/reverts links into DRBD volumes.
GNU General Public License v2.0
8 stars 5 forks source link

Service restart/reload on link change #11

Open ciroiriarte opened 1 year ago

ciroiriarte commented 1 year ago

Would it be possible to extend the restart/reload logic present today for syslog/syslog-ng/rsyslog & cron to any arbitrary service?

linsomniac commented 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.