Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Debian Squeeze AMI hostname.sh
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Josh Kraemer  
View profile  
 More options Mar 13 2012, 6:21 pm
From: Josh Kraemer <joshkrae...@gmail.com>
Date: Tue, 13 Mar 2012 15:21:05 -0700 (PDT)
Local: Tues, Mar 13 2012 6:21 pm
Subject: Debian Squeeze AMI hostname.sh

I'm using a Debian AMI that I built from scratch. Whether I use my own
Debian AMI or an existing published Debian AMI, I always notice the
following errors from the system console log when the instance boots:

hostname: the specified hostname is invalid
startpar: service(s) returned failure: hostname.sh ...

hostname.sh is an init.d script that Debian uses to set the hostname from
/etc/hostname, which doesn't exist and is not used in any Debian AMIs.

How can I disable or remove hostname.sh? I've tried to remove it, but then
I just get errors that hostname.sh could not be found, because it's
symlinked from somewhere else.

The above errors don't affect the operation of the instance, but it's just
annoying to seem them on each boot.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Fordham  
View profile  
 More options Mar 13 2012, 10:54 pm
From: "Chris Fordham" <phasendre...@gmail.com>
Date: Wed, 14 Mar 2012 13:54:17 +1100
Local: Tues, Mar 13 2012 10:54 pm
Subject: Re: [ec2debian] Debian Squeeze AMI hostname.sh
On Wed, 14 Mar 2012 09:21:05 +1100, Josh Kraemer <joshkrae...@gmail.com>  
wrote:

The file, /etc/init.d/hostname.sh is from the package initscripts  
(http://packages.debian.org/squeeze/initscripts).

Personally I use Chef and this recipe to configure the hostname:
https://github.com/flaccid/cookbooks_public/blob/master/cookbooks/rs_...

You'll see in the provider that the service is started:
https://github.com/flaccid/cookbooks_public/blob/master/cookbooks/rs_...

I just checked and this package is definitely included in the RightScale  
OSS AMIs I built and published (initscripts 2.88dsf-13.1).
See http://wiki.debian.org/Cloud/AmazonEC2Image and  
http://support.rightscale.com/21-Community/RightScale_OSS#Debian_GNU....

Hope this helps!

-Chris Fordham


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
andsens  
View profile  
 More options Mar 14 2012, 5:52 am
From: andsens <ands...@gmail.com>
Date: Wed, 14 Mar 2012 02:52:43 -0700 (PDT)
Local: Wed, Mar 14 2012 5:52 am
Subject: Re: Debian Squeeze AMI hostname.sh
I have a made a buildscript where I took care of every possible
startup error. But I gave up on hostname.sh.
There is a bug when the hostname is not set in '/etc/hostname' (or
because it has not been assigned by DHCP yet).
hostname.sh is supposed to set it to localhost. The problem with all
that is that `hostname` returns '(none)' instead of an empty string in
this case.
The script does not account for that, and tries to set it to '(none)'
instead, which is an invalid hostname.
I would suggest ignoring it, until the bug is fixed.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165086

On Mar 13, 11:21 pm, Josh Kraemer <joshkrae...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Fordham  
View profile  
 More options Mar 14 2012, 2:58 pm
From: "Chris Fordham" <phasendre...@gmail.com>
Date: Thu, 15 Mar 2012 05:58:13 +1100
Local: Wed, Mar 14 2012 2:58 pm
Subject: Re: [ec2debian] Re: Debian Squeeze AMI hostname.sh

On Wed, 14 Mar 2012 20:52:43 +1100, andsens <ands...@gmail.com> wrote:
> I have a made a buildscript where I took care of every possible
> startup error. But I gave up on hostname.sh.
> There is a bug when the hostname is not set in '/etc/hostname' (or
> because it has not been assigned by DHCP yet).
> hostname.sh is supposed to set it to localhost. The problem with all
> that is that `hostname` returns '(none)' instead of an empty string in
> this case.
> The script does not account for that, and tries to set it to '(none)'
> instead, which is an invalid hostname.
> I would suggest ignoring it, until the bug is fixed.
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165086

I guess I don't run into the bug as the provider in the cookbook also sets  
/etc/hostname
Though I have not observed this at all with the RightScale OSS AMIs.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josh Kraemer  
View profile  
 More options Mar 15 2012, 4:08 pm
From: Josh Kraemer <joshkrae...@gmail.com>
Date: Thu, 15 Mar 2012 13:08:52 -0700 (PDT)
Local: Thurs, Mar 15 2012 4:08 pm
Subject: Re: Debian Squeeze AMI hostname.sh

andsens,

It seems this issue is related to the fact that hostname.sh is run before
the network interfaces are configured.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
andsens  
View profile  
 More options Mar 15 2012, 5:10 pm
From: andsens <ands...@gmail.com>
Date: Thu, 15 Mar 2012 14:10:05 -0700 (PDT)
Local: Thurs, Mar 15 2012 5:10 pm
Subject: Re: Debian Squeeze AMI hostname.sh
Well its not really the purpose of the script to be dependent on NICs.
It's only purpose is to set the hostname in the kernel to what is
defined in /etc/hostname.
Later on DHCP clients might change that, but that change does not need
to go through hostname.sh

On Mar 15, 9:08 pm, Josh Kraemer <joshkrae...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »