[3275] in testers
Changing hostnames under Solaris
daemon@ATHENA.MIT.EDU (Craig Fields)
Thu Jun 19 19:33:18 1997
Date: Thu, 19 Jun 1997 19:33:06 -0400
From: Craig Fields <cfields@MIT.EDU>
To: testers@MIT.EDU
Cc: dot@MIT.EDU, mbarker@MIT.EDU
The documented procedure (from both system and user release notes):
On Solaris machines, the proper way to change the hostname
is to edit /etc/athena/rc.conf and reboot.
does not work. Rebooting a second time will cause the changes to take
effect. There are a couple of reasons for this.
First, "reboot" does not run system shutdown scripts, so
/etc/init.d/athena.config fails to be run before shutdown. I don't
know if this is actually a bug that reboot doesn't do this, but it
appears to be intentional.
Because hostname configuration appears to happen before init is even
run, (I do not know how) the next run of athena.config at boot time is
too late.
shutdown -g 0 -i 6 will do the right thing, however.
But I think we try not to depend on the shutdown happening properly,
so I suspect syncconf should exit status 1 if it changes the hostname,
making athena.config force an automatic reboot (as happens in other
cases).
Craig