Properly restart syslog when dhcp says to

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15538 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-03-15 20:00:35 +00:00
parent 16642a0810
commit 7eaed897e8

View File

@ -43,7 +43,8 @@ elif [ $reason = "BOUND" ]; then
for ls in $new_log_servers; do
echo *.* @$ls >> /etc/rsyslog.conf
done
kill -1 `cat /var/run/syslogd.pid`
kill `cat /var/run/syslogd.pid`
( sleep 3;/sbin/rsyslogd -c4 ) &
if [ ! -z "$new_tcode" -a -r "/usr/share/zoneinfo/posix/$new_tcode" ]; then
cp "/usr/share/zoneinfo/posix/$new_tcode" /etc/localtime