--- rpms/e-smith-base/sme10/e-smith-base-5.8.0-bz11094-raidmonitor.service.patch 2020/11/12 02:58:43 1.1 +++ rpms/e-smith-base/sme10/e-smith-base-5.8.0-bz11094-raidmonitor.service.patch 2020/12/02 03:56:43 1.4 @@ -1,6 +1,6 @@ diff -Nur e-smith-base-5.8.0.old/createlinks e-smith-base-5.8.0/createlinks --- e-smith-base-5.8.0.old/createlinks 2020-11-11 21:39:57.056000000 -0500 -+++ e-smith-base-5.8.0/createlinks 2020-11-11 21:54:35.542000000 -0500 ++++ e-smith-base-5.8.0/createlinks 2020-11-11 22:10:03.287000000 -0500 @@ -605,7 +605,6 @@ my %service2order = ( @@ -9,7 +9,15 @@ diff -Nur e-smith-base-5.8.0.old/createl dhcpd => "65", 'local' => "99", ); -@@ -657,6 +656,7 @@ +@@ -628,7 +627,6 @@ + } + + # Set up links to daemontools. +-safe_symlink("daemontools", "root/etc/rc.d/init.d/raidmonitor"); + + safe_symlink("run.dhclient", "root/var/service/wan/run.DHCPHostname"); + safe_symlink("run.dhclient", "root/var/service/wan/run.DHCPEthernetAddress"); +@@ -657,6 +655,7 @@ systemd-update-utmp-runlevel.service systemd-user-sessions.service networking.service @@ -17,12 +25,12 @@ diff -Nur e-smith-base-5.8.0.old/createl )) { symlink("../$unit", -@@ -664,6 +664,8 @@ +@@ -664,6 +663,8 @@ or die "Can't symlink to root/usr/lib/systemd/system/$target.target.wants/$unit: $!"; } } +symlink("mdmonitor.service", -+ "root/usr/lib/systemd/system/raidmonitor.service") ++ "root/usr/lib/systemd/system/raidmonitor.service"); # languages links foreach (qw(fr-be fr-lu fr-mc fr-ch)) @@ -50,7 +58,7 @@ diff -Nur e-smith-base-5.8.0.old/root/us +#Koozali +ExecStartPre=/sbin/e-smith/service-status raidmonitor +ExecStartPre=/sbin/e-smith/systemd/mdmonitor-pre -+ExecStart=/sbin/mdadm --monitor --scan --program /sbin/e-smith/mdevent --pid-file=/var/run/mdadm/mdadm.pid ++ExecStart=/sbin/mdadm --monitor --scan --program /sbin/e-smith/mdevent -f --pid-file=/var/run/mdadm/mdadm.pid + +[Install] +Alias=raidmonitor.service