1 |
diff -Nur --no-dereference smeserver-radicale-0.0.3.old/createlinks smeserver-radicale-0.0.3/createlinks |
2 |
--- smeserver-radicale-0.0.3.old/createlinks 2015-10-18 05:35:12.000000000 -0400 |
3 |
+++ smeserver-radicale-0.0.3/createlinks 2022-08-04 00:38:28.297000000 -0400 |
4 |
@@ -31,7 +31,25 @@ |
5 |
templates2events("/etc/services", 'radicale-update'); |
6 |
safe_symlink("adjust", "root/etc/e-smith/events/radicale-update/services2adjust/masq"); |
7 |
|
8 |
+my $pkg= "smeserver-radicale"; |
9 |
+my $event = "${pkg}-update"; |
10 |
+ |
11 |
+event_actions($event, qw( |
12 |
+ radicale-pip-upgrade 10 |
13 |
+ systemd-default 88 |
14 |
+ systemd-reload 89 |
15 |
+)); |
16 |
+ |
17 |
+event_templates($event, qw( |
18 |
+ /etc/radicale/logging |
19 |
+ /etc/radicale/config |
20 |
+ /etc/hosts.allow |
21 |
+ /etc/rc.d/init.d/masq |
22 |
+ /etc/services |
23 |
+)); |
24 |
+ |
25 |
+event_services($event, qw( |
26 |
+ radicale restart |
27 |
+ masq adjust |
28 |
+)); |
29 |
|
30 |
-service_link_enhanced("radicale", "S95", "7"); |
31 |
-service_link_enhanced("radicale", "K25", "6"); |
32 |
-service_link_enhanced("radicale", "K25", "0"); |
33 |
diff -Nur --no-dereference smeserver-radicale-0.0.3.old/root/etc/e-smith/templates/etc/radicale/config/20daemon smeserver-radicale-0.0.3/root/etc/e-smith/templates/etc/radicale/config/20daemon |
34 |
--- smeserver-radicale-0.0.3.old/root/etc/e-smith/templates/etc/radicale/config/20daemon 2015-10-18 05:35:12.000000000 -0400 |
35 |
+++ smeserver-radicale-0.0.3/root/etc/e-smith/templates/etc/radicale/config/20daemon 2022-08-04 00:47:49.963000000 -0400 |
36 |
@@ -4,4 +4,4 @@ |
37 |
|
38 |
# File storing the PID in daemon mode |
39 |
#pid = |
40 |
-pid = /var/run/radicale/radicale.pid |
41 |
+pid = /run/radicale/radicale.pid |
42 |
Les fichiers binaires smeserver-radicale-0.0.3.old/root/etc/rc.d/init.d/.radicale.swp et smeserver-radicale-0.0.3/root/etc/rc.d/init.d/.radicale.swp sont différents |
43 |
diff -Nur --no-dereference smeserver-radicale-0.0.3.old/root/usr/lib/systemd/system/radicale.service smeserver-radicale-0.0.3/root/usr/lib/systemd/system/radicale.service |
44 |
--- smeserver-radicale-0.0.3.old/root/usr/lib/systemd/system/radicale.service 1969-12-31 19:00:00.000000000 -0500 |
45 |
+++ smeserver-radicale-0.0.3/root/usr/lib/systemd/system/radicale.service 2022-08-04 00:48:26.557000000 -0400 |
46 |
@@ -0,0 +1,14 @@ |
47 |
+[Unit] |
48 |
+Description=radicale |
49 |
+After=syslog.target network-online.target |
50 |
+ |
51 |
+[Service] |
52 |
+ExecStartPre=-/usr/sbin/e-smith/service-status radicale |
53 |
+ExecStart=/usr/bin/radicale -C /etc/radicale/config |
54 |
+PIDFile=/run/radicale/radicale.pid |
55 |
+Type=simple |
56 |
+User=radicale |
57 |
+PermissionsStartOnly=true |
58 |
+ |
59 |
+[Install] |
60 |
+WantedBy=sme-server.target |
61 |
diff -Nur --no-dereference smeserver-radicale-0.0.3.old/root/usr/lib/tmpfiles.d/radicale.conf smeserver-radicale-0.0.3/root/usr/lib/tmpfiles.d/radicale.conf |
62 |
--- smeserver-radicale-0.0.3.old/root/usr/lib/tmpfiles.d/radicale.conf 1969-12-31 19:00:00.000000000 -0500 |
63 |
+++ smeserver-radicale-0.0.3/root/usr/lib/tmpfiles.d/radicale.conf 2022-08-04 00:50:49.611000000 -0400 |
64 |
@@ -0,0 +1 @@ |
65 |
+d /run/radicale 0755 radicale radicale |