--- rpms/smeserver-sysmon/contribs10/smeserver-sysmon-systemd-11072.patch 2022/08/05 02:18:49 1.3 +++ rpms/smeserver-sysmon/contribs10/smeserver-sysmon-systemd-11072.patch 2022/08/06 03:13:31 1.7 @@ -47,22 +47,27 @@ diff -urN smeserver-sysmon-6.5.old/root/ +Description=System Monitor +After=network-online.target +Wants=network-online.target ++ diff -urN smeserver-sysmon-6.5.old/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/20Service smeserver-sysmon-6.5/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/20Service --- smeserver-sysmon-6.5.old/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/20Service 1970-01-01 10:00:00.000000000 +1000 +++ smeserver-sysmon-6.5/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/20Service 2022-08-03 16:12:26.238523740 +1000 -@@ -0,0 +1,5 @@ +@@ -0,0 +1,8 @@ + +[Service] ++ExecStartPre= ++ExecStartPre=-/sbin/e-smith/service-status sysmon ++ExecStartPre=-/sbin/e-smith/expand-template /usr/lib/systemd/system/sysmon.service.d/50koozali.conf +ExecStart= -+ExecStart=/usr/sbin/sysmon ++ExecStart=-/usr/sbin/sysmon + diff -urN smeserver-sysmon-6.5.old/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/30Install smeserver-sysmon-6.5/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/30Install --- smeserver-sysmon-6.5.old/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/30Install 1970-01-01 10:00:00.000000000 +1000 +++ smeserver-sysmon-6.5/root/etc/e-smith/templates/usr/lib/systemd/system/sysmon.service.d/50koozali.conf/30Install 2022-08-03 16:11:05.607828018 +1000 -@@ -0,0 +1,3 @@ +@@ -0,0 +1,4 @@ + +[Install] +WantedBy=sme-server.target ++ diff -urN smeserver-sysmon-6.5.old/root/etc/rc.d/init.d/sysmon smeserver-sysmon-6.5/root/etc/rc.d/init.d/sysmon --- smeserver-sysmon-6.5.old/root/etc/rc.d/init.d/sysmon 2022-08-03 15:59:11.836382422 +1000 +++ smeserver-sysmon-6.5/root/etc/rc.d/init.d/sysmon 1970-01-01 10:00:00.000000000 +1000 @@ -114,7 +119,7 @@ diff -urN smeserver-sysmon-6.5.old/root/ diff -urN smeserver-sysmon-6.5.old/root/usr/lib/systemd/system/sysmon.service smeserver-sysmon-6.5/root/usr/lib/systemd/system/sysmon.service --- smeserver-sysmon-6.5.old/root/usr/lib/systemd/system/sysmon.service 1970-01-01 10:00:00.000000000 +1000 +++ smeserver-sysmon-6.5/root/usr/lib/systemd/system/sysmon.service 2022-08-05 12:02:45.000000000 +1000 -@@ -0,0 +1,12 @@ +@@ -0,0 +1,16 @@ + +[Unit] +Description=System Monitor @@ -122,8 +127,32 @@ diff -urN smeserver-sysmon-6.5.old/root/ +Wants=network-online.target + +[Service] ++ExecStartPre= ++ExecStartPre=-/sbin/e-smith/service-status sysmon ++ExecStartPre=-/sbin/e-smith/expand-template /usr/lib/systemd/system/sysmon.service.d/50koozali.conf +ExecStart= -+ExecStart=/usr/bin/perl /usr/sbin/sysmon ++ExecStart=-/usr/sbin/sysmon ++ ++[Install] ++WantedBy= sme-server.target ++ +diff -urN smeserver-sysmon-6.5.old/root/usr/lib/systemd/system/sysmon.service.d/50koozali.conf smeserver-sysmon-6.5/root/usr/lib/systemd/system/sysmon.service.d/50koozali.conf +--- smeserver-sysmon-6.5.old/root/usr/lib/systemd/system/sysmon.service.d/50koozali.conf 1970-01-01 10:00:00.000000000 +1000 ++++ smeserver-sysmon-6.5/root/usr/lib/systemd/system/sysmon.service.d/50koozali.conf 2022-08-05 12:02:45.000000000 +1000 +@@ -0,0 +1,16 @@ ++ ++[Unit] ++Description=System Monitor ++After=network-online.target ++Wants=network-online.target ++ ++[Service] ++ExecStartPre= ++ExecStartPre=-/sbin/e-smith/service-status sysmon ++ExecStartPre=-/sbin/e-smith/expand-template /usr/lib/systemd/system/sysmon.service.d/50koozali.conf ++ExecStart= ++ExecStart=-/usr/sbin/sysmon + +[Install] +WantedBy= sme-server.target ++