Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Annoying pause when starting local [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2609

PostPosted: Wed Jul 04, 2007 12:41 am    Post subject: Annoying pause when starting local [SOLVED] Reply with quote

Hello all,

For some reason, I get this rather lengthy pause when booting up at the last line: Starting local... It takes about 5 seconds or so to get past that, and it eventually says:

Code:

This is localhost.unknown_domain (Linux x86_64 2.6.20-gentoo-r8)


I would imagine that the slowdown is in some way related to the .unknown_domain portion after local. I can't figure out why though. Does anyone have any suggestions?

Thanks a bunch,
Zach
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---


Last edited by NathanZachary on Sun Jul 22, 2007 4:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Jul 04, 2007 1:41 am    Post subject: Reply with quote

Have you set up /etc/conf.d/domainname and /etc/hosts
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2609

PostPosted: Wed Jul 04, 2007 1:47 am    Post subject: Reply with quote

I thought I did, but I don't want this computer to be networked to any other in my house; just a connection to the internet. I just noticed this slowdown starting when I reinstalled using Gentoo 2007.0 minimal install CD.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2609

PostPosted: Thu Jul 19, 2007 2:20 am    Post subject: Reply with quote

Here's my hosts file:

Code:

# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the for
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not be
# consulted at all; see /etc/host.conf for the resolution order.
#

# IPv4 and IPv6 localhost aliases
127.0.0.1   localhost
::1      localhost

#
# Imaginary network.
#10.0.0.2               myname
#10.0.0.3               myfriend
#
# According to RFC 1918, you can use the following IP networks for private
# nets which will never be connected to the Internet:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255
#
# In case you want to be able to connect directly to the Internet (i.e. not
# behind a NAT, ADSL router, etc...), you need real official assigned
# numbers.  Do not try to invent your own network numbers but instead get one
# from your network provider (if any) or from your regional registry (ARIN,
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#


I don't have anything configured in there.

Also, I don't have an /etc/conf.d/domainnames, but I do have /etc/conf.d/hostname, which says:

Code:

# /etc/conf.d/hostname

# Set to the hostname of this machine
HOSTNAME="tux_lappy"


Any ideas?
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Fri Jul 20, 2007 6:12 am    Post subject: Reply with quote

I think he's referring to /etc/conf.d/net (it used to be done in /etc/conf.d/domainname).

If you have a fully-qualified domain name, put it in there:
Code:

dns_domain="foobar.com"


Correct me if I'm off base on the rest of this Paul.

It gets copied from there to /etc/resolv.conf by a script, then resolv+ uses it when the system needs to know your dns domain name.

If you don't have a domain, and you are not running services that require a FQDN (e.g. apache or something), then you don't really need to have a the dns_domain variable defined and I don't think that would cause your slowdown. (If you want to get rid of the "unknown_domain" thing, just delete the ".\O" from /etc/issue.)

Resolv takes the hostname from /etc/hosts (not from /etc/hostname), so if you do actually want your hostname to be used (for networking purposes) as tux_lappy, you should put in in /etc/hosts. There's nothing technically wrong with your /etc/hosts file, although if you intend to refer to your local or external ethernet interface by name you might want to add it (as your hostname and aliased to your hostname.domainname):
Code:
127.0.0.1       localhost       tux_lappy     tux_lappy.foobar.com            #for local alias, OR next line
192.168.1.136   tux_lappy           tux_lappy.foobar.com                      #for external alias (don't have both this line and aliases on localhost line)


If you want to diagnose the slowdown in your boot process you could use bootchart.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2609

PostPosted: Sun Jul 22, 2007 4:47 pm    Post subject: Reply with quote

Thanks for the advice! Removing the .\O from /etc/issue fixed the problem and the slowdown! :)
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum