CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Networking Support
   [SOLVED] Avahi not "self aware"

 

  Bottom    Previous Topic    Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  pschaff
      pschaff
Re: [SOLVED] Avahi not "self aware"
#1
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Quote:

szumlins wrote:
Adding the hostname directive to the rc.local file worked and properly switched the hostname.

Thanks for reporting back. Marking this thread [SOLVED] for posterity.

Quote:

I am still really perplexed as to why it works in rc.local, but not when run during the normal boot process when every other command I run in the script runs without issue. It is really confusing to me, but it is another problem for another day.

Because something that runs after your first script in the boot process overwrites what you did. The usual way to handle that would be to set the hostname to the desired value, but your requirements seem to preclude that approach as the hostname is not known a priori.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/4/9 15:00
Create PDF from Post Print
Top
Subject Poster Date
     Re: Avahi not "self aware" pschaff 2012/3/26 23:40
       Re: Avahi not "self aware" szumlins 2012/4/4 4:24
         Re: Avahi not "self aware" pschaff 2012/4/4 14:51
           Re: Avahi not "self aware" szumlins 2012/4/5 18:54
             Re: Avahi not "self aware" szumlins 2012/4/9 3:37
               Re: [SOLVED] Avahi not "self aware" pschaff 2012/4/9 15:00
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com