The line I is was referring to is the following:
IP_ADDR=`hostname -i | sed -e 's/\(.*\) .*/\1/'`

It's a line from the standard skel-repo that comes with
freevsd 1.4.10.
When I issue the command from within a skell then the following
occurs:

hostname: cannot set hostname to `-i': Operation not permitted

isn't that nice? :)
It really tries to set the hostname to -i.
I must say this is the standard gnu version of hostname
and it may not have the -i switch included.
It seems to be a redhat specific feature and the skel this
hostname version is in is a fully home-baked/compiled one
so this could cause the problem.
One thing is for sure: When I remove the line from the script,
the problem disappears.
Any way, thanks for your help and I'll see if a recompile with
the proper patches solves the problem.

Now I'm at it, i have another question 'pending' in the
list about a relaying denied message with e-mail
directed to a virtual domain. I hope you can take a quick
look at that one because it's driving me mad. ;)
It seems to be some sort of configuration error of some sort.
I hope you can make some time to take a look at it.

Many thanks,

Maarten



-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Namens Damion Parry
Verzonden: maandag 15 juli 2002 16:41
Aan: [EMAIL PROTECTED]
Onderwerp: Re: strange 'hostname -i' behaviour


Hello,

I've only just got a chance to look at this and can't seem to replicate your
problem. The only thing I can put it down to is the possibility of one of
the rc
scripts containing a 'hostname -s -i' command instead of 'hostname -i'.

Could you confirm this either way for me, and let me know if you are still
experiencing problems.

Thanks,
Damion.

Maarten Engelen wrote:
> Hi all,
>
> I just ran into the strangest thing ever!
> When I start any of our virtual servers on our
> server then the hostname of the hostserver is changed to '-i'!
> I went through the startup scripts and there's a hostname -i command
> at the beginning of the rc.vsd file. This should return the ip-address
> which it does correct as all services on the virtual servers are started
> and are working properly, but it also seems to change the hostname
> of my the host server %-|
> When I issue a hostname -i command on the host server then it returns the
> ip-address of the last virtual server that booted and not the host servers
> local ip address 127.0.0.1. When I change the hostname manually to the
> proper one, then everything works fine again.
> Does anyone know how to solve this problem?
>
> Thanks in advance,
>
> Maarten Engelen
>
> ------------------------- The freeVSD Support
List --------------------------
> Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
> Unsubscribe:
mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
> Archives:    http://freevsd.org/support/mail-archives/freevsd-support
> --------------------------------------------------------------------------
---
>
>


------------------------- The freeVSD Support
List --------------------------
Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
----------------------------------------------------------------------------
-


------------------------- The freeVSD Support List --------------------------
Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
-----------------------------------------------------------------------------

Reply via email to