initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
10
root/sbin/e-smith/systemd/mdmonitor-pre
Normal file
10
root/sbin/e-smith/systemd/mdmonitor-pre
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
count=$(sed -n '/[0-9]\s\+[^ ]\+[^0-9]$/p;/[0-9]\s\+\(rd\|ida\|cciss\|i2o\)\/[^ ]\+[^0-9p][0-9]\+$/p' /proc/partitions | wc -l)
|
||||
if [ $count -ge 2 ]
|
||||
then
|
||||
exit 0
|
||||
else
|
||||
echo "Only $count drive(s) in this system - disabling raid monitoring"
|
||||
exit 1
|
||||
fi
|
||||
|
16
root/sbin/e-smith/systemd/rsyslog-pre
Normal file
16
root/sbin/e-smith/systemd/rsyslog-pre
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# before 10.1 rsyslog was listening to /dev/log
|
||||
# we want systemd-journald listen to that now
|
||||
# and rsyslog to /run/systemd/journal/syslog
|
||||
# will not be needed in SME 11
|
||||
|
||||
if [[ ! -S /dev/log ]]; then
|
||||
#echo "no /dev/log"
|
||||
/usr/bin/systemctl restart systemd-journald.socket
|
||||
/usr/bin/systemctl restart systemd-journald.service
|
||||
fi
|
||||
|
||||
# we can now keep going with rsyslog startup
|
||||
# /etc/rsyslog.conf will define the use of /run/systemd/journal/syslog
|
||||
|
Reference in New Issue
Block a user