mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 01:26:38 +00:00
Added block to restart rsyslogd after dhclient has been restarted. Moved restart to xCAT-genesis-scripts
This commit is contained in:
parent
831cc76410
commit
d6f0c89d43
@ -42,6 +42,18 @@ while [ $WAITING -gt 0 ]; do
|
||||
sleep 1
|
||||
echo -en "Waiting $i seconds for DHCP changes to take effect \r"
|
||||
done
|
||||
|
||||
# restart rsyslog after dhclient
|
||||
kill -9 `cat /var/run/syslogd.pid`
|
||||
sleep 3
|
||||
RSYSLOGD_VERSION=`rsyslogd -v | grep "rsyslogd" | cut -d" " -f2 | cut -d"." -f1`
|
||||
if [ $RSYSLOGD_VERSION -ge 8 ]; then
|
||||
# Newer versions of rsyslogd do not support -c flag anymore
|
||||
/sbin/rsyslogd
|
||||
else
|
||||
/sbin/rsyslogd -c4
|
||||
fi
|
||||
|
||||
WAITING=0
|
||||
if [ ! -z "$FORCENICS" ]; then
|
||||
#for nic in `ifconfig|grep HWaddr|awk '{print $1}'|egrep "$FORCENICS"`; do
|
@ -98,6 +98,7 @@ touch /etc/xcat/genesis-scripts-updated
|
||||
%{rpminstallroot}/bin/pseries_platform
|
||||
%{rpminstallroot}/bin/update_flash
|
||||
%{rpminstallroot}/bin/update_flash_nv
|
||||
%{rpminstallroot}/bin/restart
|
||||
%{rpminstallroot}/debian/changelog
|
||||
%{rpminstallroot}/debian/compat
|
||||
%{rpminstallroot}/debian/control
|
||||
|
Loading…
x
Reference in New Issue
Block a user