1 |
diff -Nur --no-dereference e-smith-domains-2.6.0.old/createlinks e-smith-domains-2.6.0/createlinks |
2 |
--- e-smith-domains-2.6.0.old/createlinks 2021-04-07 16:14:09.482000000 -0400 |
3 |
+++ e-smith-domains-2.6.0/createlinks 2021-04-07 16:19:39.977000000 -0400 |
4 |
@@ -16,6 +16,12 @@ |
5 |
$event = "domain-create"; |
6 |
|
7 |
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/tinydns"); |
8 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache"); |
9 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder"); |
10 |
+templates2events("/var/service/dnscache/root/servers/@", $event); |
11 |
+templates2events("/var/service/dnscache.forwarder/root/servers/@", $event); |
12 |
+templates2events("/var/service/dnscache.forwarder/config", $event); |
13 |
+templates2events("/home/e-smith/ssl.pem/pem", $event); |
14 |
|
15 |
#-------------------------------------------------- |
16 |
# actions for domain-delete event |
17 |
@@ -24,6 +30,12 @@ |
18 |
$event = "domain-delete"; |
19 |
|
20 |
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/tinydns"); |
21 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache"); |
22 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder"); |
23 |
+templates2events("/var/service/dnscache/root/servers/@", $event); |
24 |
+templates2events("/var/service/dnscache.forwarder/root/servers/@", $event); |
25 |
+templates2events("/var/service/dnscache.forwarder/config", $event); |
26 |
+templates2events("/home/e-smith/ssl.pem/pem", $event); |
27 |
|
28 |
#-------------------------------------------------- |
29 |
# actions for domain-modify event |
30 |
@@ -33,6 +45,11 @@ |
31 |
|
32 |
templates2events("/home/e-smith/ssl.pem/pem", $event); |
33 |
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/tinydns"); |
34 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache"); |
35 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder"); |
36 |
+templates2events("/var/service/dnscache/root/servers/@", $event); |
37 |
+templates2events("/var/service/dnscache.forwarder/root/servers/@", $event); |
38 |
+templates2events("/var/service/dnscache.forwarder/config", $event); |
39 |
|
40 |
#-------------------------------------------------- |
41 |
# actions for e-smith-domains-update event |
42 |
@@ -42,4 +59,9 @@ |
43 |
|
44 |
templates2events("/home/e-smith/ssl.pem/pem", $event); |
45 |
safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/tinydns"); |
46 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache"); |
47 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder"); |
48 |
+templates2events("/var/service/dnscache/root/servers/@", $event); |
49 |
+templates2events("/var/service/dnscache.forwarder/root/servers/@", $event); |
50 |
+templates2events("/var/service/dnscache.forwarder/config", $event); |
51 |
|