Solaris's files in
There should be one file in init.d, run early, to perform the task of determining and setting the system's hostname. Any other startup script that wants to know they hostname should then run the hostname command to get it.
There are multiple scripts in init.d that all duplicate some variant of complicated logic saying, "If I started up with DHCP, then ask DHCP what my hostname is, or if I started up with BOOTP, then ask something else what my hostname is, or
The annoying thing is that complicated logic winds up asking DHCP what the DHCP server supplied for my hostname. That's a legacy assumption: DHCP is not providing my hostname; instead I'm telling DHCP what I'd like my hostname to be. (This is a relatively new innovation for Solaris and apparently not everyone with commit access to
Solaris culture shock today.
/etc/init.d/ is not 'solaris' (Score:2)
This is System V. Also, you might find stokely.com [stokely.com] helpful as, if you are rebooting for dhcp you are doing it wrong.
Re:/etc/init.d/ is not 'solaris' (Score:2)
My point is that the scripts in Solaris's /etc/init.d are not well organized compared to Red Hat, Debian, LFS, etc., particularly in the matter of setting the hostname. It would help if some of the people who wrote those scripts knew you could use DHCP to request a hostname.
if you are rebooting for dhcp you are doing it wrong.
Yeah, I know. :) Someone ought to tell the guy from Sun who wrote that manpage.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:/etc/init.d/ is not 'solaris' (Score:2)
Well, linux isn't System V [ it's -ish but, at least the last time I deigned to soil myself by touching Linux, it's a mismash of variants ] and once you get used to the way Solaris does things, it will make some sort of sense. RH and friends seem disorganised to me :)
and manpages? Why, when I was young, we didn't have manpages! We had to go into the basement of the computing center to find the troll-like guy who would speak only in binary ;)