1 |
diff -urN smeserver-libreswan-xl2tpd-0.5.old/createlinks smeserver-libreswan-xl2tpd-0.5/createlinks |
2 |
--- smeserver-libreswan-xl2tpd-0.5.old/createlinks 2021-03-01 10:38:23.968020934 +0000 |
3 |
+++ smeserver-libreswan-xl2tpd-0.5/createlinks 2021-03-02 11:51:15.555838732 +0000 |
4 |
@@ -10,6 +10,28 @@ |
5 |
|
6 |
use esmith::Build::CreateLinks qw(:all); |
7 |
|
8 |
+# our event specific for updating with yum without reboot |
9 |
+$event = "smeserver-libreswan-xl2tpd-update"; |
10 |
+#add here the path to your templates needed to expand |
11 |
+#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
12 |
+ |
13 |
+foreach my $file (qw( |
14 |
+ /etc/systemd/system-preset/49-koozali.preset |
15 |
+)) |
16 |
+{ |
17 |
+ templates2events( $file, $event ); |
18 |
+} |
19 |
+ |
20 |
+#action needed in case we have a systemd unit |
21 |
+event_link("systemd-default", $event, "10"); |
22 |
+event_link("systemd-reload", $event, "50"); |
23 |
+ |
24 |
+#action specific to this package |
25 |
+event_link("ip-up.xl2tpd", $event, "60"); |
26 |
+ |
27 |
+#services we need to restart |
28 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/xl2tpd"); |
29 |
+ |
30 |
#-------------------------------------------------- |
31 |
# templates for events |
32 |
#-------------------------------------------------- |
33 |
@@ -50,10 +72,10 @@ |
34 |
event_link( "xl2tpd-interface-access", $eventXl2tpd, "70" ); |
35 |
|
36 |
# Runlevel init links. |
37 |
-service_link_enhanced( "xl2tpd", "S95", "7" ); |
38 |
-service_link_enhanced( "xl2tpd", "K21", "6" ); |
39 |
-service_link_enhanced( "xl2tpd", "K21", "0" ); |
40 |
-service_link_enhanced( "xl2tpd", "K21", "1" ); |
41 |
+#service_link_enhanced( "xl2tpd", "S95", "7" ); |
42 |
+#service_link_enhanced( "xl2tpd", "K21", "6" ); |
43 |
+#service_link_enhanced( "xl2tpd", "K21", "0" ); |
44 |
+#service_link_enhanced( "xl2tpd", "K21", "1" ); |
45 |
|
46 |
# On ip-up.xl2tpd expand and restart masq |
47 |
|
48 |
diff -urN smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf |
49 |
--- smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf 1970-01-01 01:00:00.000000000 +0100 |
50 |
+++ smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/ipsec.service.d/50koozali.conf 2021-03-01 14:31:21.000000000 +0000 |
51 |
@@ -0,0 +1,5 @@ |
52 |
+[Unit] |
53 |
+After=network.target network.service wan.service |
54 |
+[Install] |
55 |
+WantedBy=sme-server.target |
56 |
+ |
57 |
diff -urN smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf |
58 |
--- smeserver-libreswan-xl2tpd-0.5.old/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf 1970-01-01 01:00:00.000000000 +0100 |
59 |
+++ smeserver-libreswan-xl2tpd-0.5/root/usr/lib/systemd/system/xl2tpd.service.d/50koozali.conf 2021-03-01 14:31:21.000000000 +0000 |
60 |
@@ -0,0 +1,5 @@ |
61 |
+[Unit] |
62 |
+After=network.target network.service wan.service |
63 |
+[Install] |
64 |
+WantedBy=sme-server.target |
65 |
+ |