1 |
diff -Nur e-smith-mysql-2.6.0.old/createlinks e-smith-mysql-2.6.0/createlinks |
2 |
--- e-smith-mysql-2.6.0.old/createlinks 2020-12-07 17:10:02.059000000 -0500 |
3 |
+++ e-smith-mysql-2.6.0/createlinks 2020-12-07 21:52:19.205000000 -0500 |
4 |
@@ -56,3 +56,27 @@ |
5 |
safe_symlink("/var/service/mariadb", "root/service/mariadb"); |
6 |
safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/mariadb"); |
7 |
service_link_enhanced("mariadb", 50, 7); |
8 |
+ |
9 |
+#-------------------------------------------------- |
10 |
+# actions for e-smith-mysql-update event |
11 |
+#-------------------------------------------------- |
12 |
+$event = "e-smith-mysql-update"; |
13 |
+ |
14 |
+foreach (qw( |
15 |
+ /etc/my.cnf |
16 |
+ /root/.my.cnf |
17 |
+ /var/service/mariadb/set.password |
18 |
+ )) |
19 |
+{ |
20 |
+ templates2events("$_", $event); |
21 |
+} |
22 |
+ |
23 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mariadb"); |
24 |
+ |
25 |
+# Move all database dumps except for mysql.dump to sql/init |
26 |
+event_link("mysql-load-tables", $event, "40"); |
27 |
+ |
28 |
+# systemd-specific action mandatory for this package-update event |
29 |
+event_link("systemd-reload", $event, "89"); |
30 |
+event_link("systemd-default", $event, "88"); |
31 |
+ |