2
0
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:
Patrick Lundgren 2016-07-13 14:36:30 -04:00
parent 831cc76410
commit d6f0c89d43
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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