diff -Nur e-smith-mysql-2.6.0.old/createlinks e-smith-mysql-2.6.0/createlinks --- e-smith-mysql-2.6.0.old/createlinks 2020-12-07 17:10:02.059000000 -0500 +++ e-smith-mysql-2.6.0/createlinks 2020-12-07 21:52:19.205000000 -0500 @@ -56,3 +56,27 @@ safe_symlink("/var/service/mariadb", "root/service/mariadb"); safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/mariadb"); service_link_enhanced("mariadb", 50, 7); + +#-------------------------------------------------- +# actions for e-smith-mysql-update event +#-------------------------------------------------- +$event = "e-smith-mysql-update"; + +foreach (qw( + /etc/my.cnf + /root/.my.cnf + /var/service/mariadb/set.password + )) +{ + templates2events("$_", $event); +} + +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb"); + +# Move all database dumps except for mysql.dump to sql/init +event_link("mysql-load-tables", $event, "40"); + +# systemd-specific action mandatory for this package-update event +event_link("systemd-reload", $event, "89"); +event_link("systemd-default", $event, "88"); +