/[smeserver]/rpms/e-smith-dnscache/sme10/e-smith-dnscache-2.6.0-bz11097_systemd.patch
ViewVC logotype

Annotation of /rpms/e-smith-dnscache/sme10/e-smith-dnscache-2.6.0-bz11097_systemd.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Nov 16 16:09:24 2020 UTC (3 years, 11 months ago) by michel
Branch: MAIN
CVS Tags: e-smith-dnscache-2_6_0-4_el7_sme, e-smith-dnscache-2_6_0-6_el7_sme, e-smith-dnscache-2_6_0-3_el7_sme, e-smith-dnscache-2_6_0-5_el7_sme, e-smith-dnscache-2_6_0-8_el7_sme, e-smith-dnscache-2_6_0-7_el7_sme
make: « clog » est à jour.

1 michel 1.1 diff -urN e-smith-dnscache-2.6.0.old/createlinks e-smith-dnscache-2.6.0/createlinks
2     --- e-smith-dnscache-2.6.0.old/createlinks 2006-03-15 00:59:06.000000000 +0400
3     +++ e-smith-dnscache-2.6.0/createlinks 2020-11-15 21:22:59.391047074 +0400
4     @@ -5,10 +5,10 @@
5     foreach (qw(root/servers/@ config))
6     {
7     templates2events("/var/service/dnscache.forwarder/$_",
8     - qw(bootstrap-console-save console-save dns-update));
9     + qw(bootstrap-console-save console-save dns-update e-smith-dnscache-update));
10     }
11     templates2events('/var/service/dnscache/root/servers/@',
12     - qw(bootstrap-console-save console-save dns-update));
13     + qw(bootstrap-console-save console-save dns-update e-smith-dnscache-update));
14    
15     foreach my $event (qw(
16     console-save
17     @@ -18,6 +18,7 @@
18     domain-delete
19     domain-modify
20     dns-update
21     + e-smith-dnscache-update
22     ))
23     {
24     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache");
25     @@ -26,6 +27,7 @@
26     foreach my $event (qw(
27     console-save
28     dns-update
29     + e-smith-dnscache-update
30     ))
31     {
32     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder");
33     diff -urN e-smith-dnscache-2.6.0.old/root/usr/lib/systemd/system/dnscache.forwarder.service e-smith-dnscache-2.6.0/root/usr/lib/systemd/system/dnscache.forwarder.service
34     --- e-smith-dnscache-2.6.0.old/root/usr/lib/systemd/system/dnscache.forwarder.service 1970-01-01 04:00:00.000000000 +0400
35     +++ e-smith-dnscache-2.6.0/root/usr/lib/systemd/system/dnscache.forwarder.service 2020-11-15 21:27:25.005680352 +0400
36     @@ -0,0 +1,14 @@
37     +[Unit]
38     +Description=dnscache.forwarder,
39     +After=network.target
40     +
41     +[Service]
42     +Type=oneshot
43     +ExecStartPre=/sbin/e-smith/service-status dnscache.forwarder
44     +ExecStart=/usr/bin/sv u /service/dnscache.forwarder
45     +ExecStop=/usr/bin/sv stop /service/dnscache.forwarder
46     +ExecReload=/usr/bin/sv t /service/dnscache.forwarder
47     +RemainAfterExit=yes
48     +
49     +[Install]
50     +WantedBy=sme-server.target
51     diff -urN e-smith-dnscache-2.6.0.old/root/usr/lib/systemd/system/dnscache.service e-smith-dnscache-2.6.0/root/usr/lib/systemd/system/dnscache.service
52     --- e-smith-dnscache-2.6.0.old/root/usr/lib/systemd/system/dnscache.service 1970-01-01 04:00:00.000000000 +0400
53     +++ e-smith-dnscache-2.6.0/root/usr/lib/systemd/system/dnscache.service 2020-11-15 21:27:47.245564633 +0400
54     @@ -0,0 +1,14 @@
55     +[Unit]
56     +Description=dnscache,
57     +After=network.target
58     +
59     +[Service]
60     +Type=oneshot
61     +ExecStartPre=/sbin/e-smith/service-status dnscache
62     +ExecStart=/usr/bin/sv u /service/dnscache
63     +ExecStop=/usr/bin/sv stop /service/dnscache
64     +ExecReload=/usr/bin/sv t /service/dnscache
65     +RemainAfterExit=yes
66     +
67     +[Install]
68     +WantedBy=sme-server.target
69     diff -urN e-smith-dnscache-2.6.0.old/root/usr/lib/systemd/system-preset/80-koozali-dnscache.preset e-smith-dnscache-2.6.0/root/usr/lib/systemd/system-preset/80-koozali-dnscache.preset
70     --- e-smith-dnscache-2.6.0.old/root/usr/lib/systemd/system-preset/80-koozali-dnscache.preset 1970-01-01 04:00:00.000000000 +0400
71     +++ e-smith-dnscache-2.6.0/root/usr/lib/systemd/system-preset/80-koozali-dnscache.preset 2020-11-15 21:26:52.812846008 +0400
72     @@ -0,0 +1,2 @@
73     +enable dnscache.service
74     +enable dnscache.forwarder.service

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed