after hostname change, syslogd still output previous hostname to messages file
We're running two servers : CentOS 4.4 and RedHat ent. 5.1, both of them have same issues :
after we change to another hostname, the syslog (/var/log/messages) still keeps the previous hostname.
the way we're change hostname are :
service network restart
(actually, we've reboot this server several times)
but we still found the log messages are still in previous hostname. (in /var/log/messages)
any advice on this? Thanks.
logs to change the hostname entry? That won't happen.
I've fingure out the reason, and it looks like I should take this action before 'service syslog restart' .
echo "my.new.host.name" > /proc/sys/kernel/hostname
there's `hostname my.new.host.name` command seems doing the same thing.
|All times are GMT -5. The time now is 10:28 AM.|