1 |
diff -Nur smeserver-yum-2.6.0.old/createlinks smeserver-yum-2.6.0/createlinks |
diff -Nur smeserver-yum-2.6.0.old/createlinks smeserver-yum-2.6.0/createlinks |
2 |
--- smeserver-yum-2.6.0.old/createlinks 2020-12-08 22:55:14.254000000 -0500 |
--- smeserver-yum-2.6.0.old/createlinks 2020-12-08 22:55:14.254000000 -0500 |
3 |
+++ smeserver-yum-2.6.0/createlinks 2020-12-08 23:28:27.655000000 -0500 |
+++ smeserver-yum-2.6.0/createlinks 2020-12-08 23:28:27.655000000 -0500 |
4 |
@@ -21,18 +21,23 @@ |
@@ -32,7 +32,11 @@ |
|
|
|
|
# yum-update-dbs is launched by smeserver yum plugin, |
|
|
# it isnot needed anymore in install remove and update events |
|
|
-for ( qw(modify) ) |
|
|
-{ |
|
|
- event_link("yum-update-dbs", "yum-$_", "90"); |
|
|
-} |
|
|
+#for ( qw(modify) ) |
|
|
+#{ |
|
|
+# event_link("yum-update-dbs", "yum-$_", "90"); |
|
|
+#} |
|
|
|
|
|
for ( qw(bootstrap-console-save yum-update smeserver-yum-update) ) |
|
|
{ |
|
|
event_link("yum-import-keys", $_, "10"); |
|
5 |
} |
} |
6 |
|
|
7 |
-safe_symlink("once", "root/etc/e-smith/events/local/services2adjust/yum"); |
-safe_symlink("once", "root/etc/e-smith/events/local/services2adjust/yum"); |
8 |
+safe_symlink("restart", "root/etc/e-smith/events/local/services2adjust/yum"); |
+safe_symlink("restart", "root/etc/e-smith/events/local/services2adjust/yum"); |
|
+safe_symlink("restart", "root/etc/e-smith/events/yum-modify/services2adjust/yum"); |
|
9 |
|
|
10 |
+my $event= "smeserver-yum-update"; |
+my $event= "smeserver-yum-update"; |
11 |
+# systemd-specific action mandatory for this package-update event |
+# systemd-specific action mandatory for this package-update event |
32 |
# /etc/e-smith/events/local/services2adjust/yum -> once |
# /etc/e-smith/events/local/services2adjust/yum -> once |
33 |
# but that never seems to terminate |
# but that never seems to terminate |
34 |
-exec /usr/local/bin/svc -o /service/yum |
-exec /usr/local/bin/svc -o /service/yum |
35 |
+exec /etc/e-smith/events/actions/yum-update-dbs |
+exec /usr/bin/systemctl restart yum.service & |
36 |
|
|
37 |
diff -Nur smeserver-yum-2.6.0.old/root/sbin/e-smith/check4updates smeserver-yum-2.6.0/root/sbin/e-smith/check4updates |
diff -Nur smeserver-yum-2.6.0.old/root/sbin/e-smith/check4updates smeserver-yum-2.6.0/root/sbin/e-smith/check4updates |
38 |
--- smeserver-yum-2.6.0.old/root/sbin/e-smith/check4updates 2020-12-08 22:55:14.233000000 -0500 |
--- smeserver-yum-2.6.0.old/root/sbin/e-smith/check4updates 2020-12-08 22:55:14.233000000 -0500 |
60 |
+ExecStart=/sbin/e-smith/yum_update_dbs |
+ExecStart=/sbin/e-smith/yum_update_dbs |
61 |
+RemainAfterExit=yes |
+RemainAfterExit=yes |
62 |
+ |
+ |
63 |
+[Install |
+[Install] |
64 |
+# do not install with sme-server.target, this service will be launched by others |
+# do not install with sme-server.target, this service will be launched by others |
65 |
+# including Koozali SME Server local.service |
+# including Koozali SME Server local.service |