1 |
diff -urN e-smith-tinydns-2.6.0.old/createlinks e-smith-tinydns-2.6.0/createlinks |
2 |
--- e-smith-tinydns-2.6.0.old/createlinks 2020-11-18 16:09:39.000000000 +0400 |
3 |
+++ e-smith-tinydns-2.6.0/createlinks 2020-11-19 09:42:50.874000000 +0400 |
4 |
@@ -19,14 +19,24 @@ |
5 |
)); |
6 |
} |
7 |
|
8 |
+#-------------------------------------------------- |
9 |
+# actions for ip-change event |
10 |
+#-------------------------------------------------- |
11 |
my $event = "ip-change"; |
12 |
safe_symlink("sigusr2", "root/etc/e-smith/events/$event/services2adjust/tinydns"); |
13 |
|
14 |
+#-------------------------------------------------- |
15 |
+# actions for e-smith-tinydns-update event |
16 |
+#-------------------------------------------------- |
17 |
$event = "e-smith-tinydns-update"; |
18 |
-safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/tinydns"); |
19 |
+safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/tinydns"); |
20 |
+templates2events("/etc/systemd/system-preset/49-koozali.preset", $event); |
21 |
+event_link("systemd-reload", $event, "89"); |
22 |
+event_link("reset-unsavedflag", $event, "95"); |
23 |
|
24 |
+#-------------------------------------------------- |
25 |
safe_symlink("daemontools", "root/etc/rc.d/init.d/tinydns"); |
26 |
-service_link_enhanced("tinydns", "S55", "7"); |
27 |
+#service_link_enhanced("tinydns", "S55", "7"); |
28 |
service_link_enhanced("tinydns", "K65", "6"); |
29 |
service_link_enhanced("tinydns", "K65", "0"); |
30 |
service_link_enhanced("tinydns", "K65", "1"); |