--- rpms/e-smith-nutUPS/sme10/e-smith-nutUPS-2.6.0-bz9423-bz11146.patch 2020/11/27 05:14:55 1.5 +++ rpms/e-smith-nutUPS/sme10/e-smith-nutUPS-2.6.0-bz9423-bz11146.patch 2020/12/07 16:29:08 1.6 @@ -37,38 +37,38 @@ diff -Nur e-smith-nutUPS-2.6.0.old/root/ +$master = $nut{Master} || 'yes'; + +if ($nutstatus eq 'enabled') { -+ $OUT .= "enable nut-server.service\n" if ($master eq 'yes'); -+ $OUT .= "disable nut-server.service\n" unless ($master eq 'yes'); -+ $OUT .= "enable nut-monitor.service\n"; ++ $OUT .= "enable nut-server.service\n" if ($master eq 'yes'); ++ $OUT .= "disable nut-server.service\n" unless ($master eq 'yes'); ++ $OUT .= "enable nut-monitor.service\n"; + } +else + { -+ $OUT .= "disable nut-server.service\n"; -+ $OUT .= "disable nut-monitor.service\n"; ++ $OUT .= "disable nut-server.service\n"; ++ $OUT .= "disable nut-monitor.service\n"; + } +} -diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/20unit e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/20unit ---- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/20unit 1969-12-31 19:00:00.000000000 -0500 -+++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/20unit 2020-11-18 16:59:54.550000000 -0500 +diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/20unit e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/20unit +--- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/20unit 1969-12-31 19:00:00.000000000 -0500 ++++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/20unit 2020-11-18 16:59:54.550000000 -0500 @@ -0,0 +1,3 @@ +[Unit] +PartOf=nut.service +After=nut.service -diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/40service e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/40service ---- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/40service 1969-12-31 19:00:00.000000000 -0500 -+++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/40service 2020-11-18 16:59:11.957000000 -0500 +diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/40service e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/40service +--- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/40service 1969-12-31 19:00:00.000000000 -0500 ++++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/40service 2020-11-18 16:59:11.957000000 -0500 @@ -0,0 +1,2 @@ +[Service] +ExecStartPre=/sbin/e-smith/service-status nut -diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/80install e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/80install ---- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/80install 1969-12-31 19:00:00.000000000 -0500 -+++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/80install 2020-11-18 16:59:11.957000000 -0500 +diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/80install e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/80install +--- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/80install 1969-12-31 19:00:00.000000000 -0500 ++++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf/80install 2020-11-18 16:59:11.957000000 -0500 @@ -0,0 +1,2 @@ +[Install] +WantedBy=sme-server.target -diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/20unit e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/20unit ---- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/20unit 1969-12-31 19:00:00.000000000 -0500 -+++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/20unit 2020-11-18 16:40:01.717000000 -0500 +diff -Nur e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/50koozali.conf/20unit e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/50koozali.conf/20unit +--- e-smith-nutUPS-2.6.0.old/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/50koozali.conf/20unit 1969-12-31 19:00:00.000000000 -0500 ++++ e-smith-nutUPS-2.6.0/root/etc/e-smith/templates/usr/lib/systemd/system/nut-server.service.d/50koozali.conf/50koozali.conf/20unit 2020-11-18 16:40:01.717000000 -0500 @@ -0,0 +1,4 @@ +[Unit] +PartOf=nut.service