[Gllug] Changing hostname without rebooting
Jason Clifford
jason at ukpost.com
Mon May 19 11:31:37 UTC 2003
On Mon, 19 May 2003, Neil Fryer wrote:
> I need to change the hostname on a server RH7.3, without rebooting the box,
> not I have done:
>
> hostname -v LHR-UK-B-WALKERS-APP
>
> And edited /etc/sysconfig/network
>
> And then /etc/rc.d/init.d/network restart
>
> BUt the hostname has not changed in all places, for instance,
> /var/log/secure still shows the old hostname, how the hell do I get around
> this?
It's not an error - it's simply that syslog (and others) will take the
hostname when it starts and wont waste time requerying something that is
almost always very static.
If you restart syslog it will pick up the change. The same should be true
of any other service with the same issue.
Jason Clifford
--
UKFSN.ORG Finance Free Software while you surf the 'net
http://www.ukfsn.org/ Sign up now
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list