diff -Nur smeserver-yum-2.6.0.old/createlinks smeserver-yum-2.6.0/createlinks --- smeserver-yum-2.6.0.old/createlinks 2020-12-08 22:55:14.254000000 -0500 +++ smeserver-yum-2.6.0/createlinks 2020-12-08 23:28:27.655000000 -0500 @@ -32,7 +32,11 @@ } -safe_symlink("once", "root/etc/e-smith/events/local/services2adjust/yum"); +safe_symlink("restart", "root/etc/e-smith/events/local/services2adjust/yum"); +my $event= "smeserver-yum-update"; +# systemd-specific action mandatory for this package-update event +event_link("systemd-reload", $event, "89"); +event_link("systemd-default", $event, "88"); #-------------------------------------------------- # functions for manager panel diff -Nur smeserver-yum-2.6.0.old/root/etc/cron.daily/smeserver-yum smeserver-yum-2.6.0/root/etc/cron.daily/smeserver-yum --- smeserver-yum-2.6.0.old/root/etc/cron.daily/smeserver-yum 2008-10-07 10:25:45.000000000 -0400 +++ smeserver-yum-2.6.0/root/etc/cron.daily/smeserver-yum 2020-12-08 23:24:30.963000000 -0500 @@ -23,5 +23,5 @@ [ $yum_status = 'enabled' ] || exit 0 -/usr/bin/sv o /service/yum +/usr/bin/systemctl restart yum.service diff -Nur smeserver-yum-2.6.0.old/root/etc/e-smith/events/actions/yum-update-dbs smeserver-yum-2.6.0/root/etc/e-smith/events/actions/yum-update-dbs --- smeserver-yum-2.6.0.old/root/etc/e-smith/events/actions/yum-update-dbs 2005-09-25 22:30:54.000000000 -0400 +++ smeserver-yum-2.6.0/root/etc/e-smith/events/actions/yum-update-dbs 2020-12-08 23:17:10.008000000 -0500 @@ -21,5 +21,5 @@ # XXX - FIXME - We should be able to do this with a link # /etc/e-smith/events/local/services2adjust/yum -> once # but that never seems to terminate -exec /usr/local/bin/svc -o /service/yum +exec /usr/bin/systemctl restart yum.service & diff -Nur smeserver-yum-2.6.0.old/root/sbin/e-smith/check4updates smeserver-yum-2.6.0/root/sbin/e-smith/check4updates --- smeserver-yum-2.6.0.old/root/sbin/e-smith/check4updates 2020-12-08 22:55:14.233000000 -0500 +++ smeserver-yum-2.6.0/root/sbin/e-smith/check4updates 2020-12-08 23:07:22.069000000 -0500 @@ -23,7 +23,7 @@ /usr/sbin/yum-cron /etc/yum/yum-cron.conf >> $TMPFILE #cat $TMP1 >> $TMPFILE # we have updates, let's inform the server-manager - /usr/bin/sv o yum + /usr/bin/systemctl restart yum.service fi diff -Nur smeserver-yum-2.6.0.old/root/usr/lib/systemd/system/yum.service smeserver-yum-2.6.0/root/usr/lib/systemd/system/yum.service --- smeserver-yum-2.6.0.old/root/usr/lib/systemd/system/yum.service 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-yum-2.6.0/root/usr/lib/systemd/system/yum.service 2020-12-08 23:06:03.287000000 -0500 @@ -0,0 +1,13 @@ +[Unit] +Description=Yum db updater for Koozali SME Server +After=network-pre.target networking.service sme-server.target + +[Service] +Type=oneshot +ExecStartPre=/sbin/e-smith/service-status yum +ExecStart=/sbin/e-smith/yum_update_dbs +RemainAfterExit=yes + +[Install] +# do not install with sme-server.target, this service will be launched by others +# including Koozali SME Server local.service