Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

baselayout : SSHD does not start at boot

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
thorheimdall
n00b
n00b
Posts: 53
Joined: Thu Dec 08, 2005 3:12 am
Location: Quebec

baselayout : SSHD does not start at boot

  • Quote

Post by thorheimdall » Mon Aug 28, 2006 2:05 am

Since the last baselayout updates (now baselayout 1.12.4-r7), sshd does not start at boot anymore (/etc/init.d/sshd status -> status: stopped, no error in logs about sshd). It is in the default runlevel though:

Code: Select all

rc-update show default
...
sshd | default
...
and I can successfully start it manually :

Code: Select all

/etc/init.d/sshd start
* Service sshd starting
* Starting sshd ...
* Service sshd started
I have this problem since the multiple baselayout updates we had in previous weeks. I ran etc-update after each update of baselayout.

There are two network interfaces (eth0 = wired network, eth1 = wireless network, net.eth0 and net.eth1 are symbolic links to net.lo in /etc/init.d/), and there is always one of them "connected" at boot. Here is my rc.conf (note that I use RC_PARALLEL_STARTUP="yes" and RC_NET_STRICT_CHECKING="no"):

Code: Select all

RC_TTY_NUMBER=11

RC_PARALLEL_STARTUP="yes"
RC_INTERACTIVE="no"

RC_HOTPLUG="yes"
RC_COLDPLUG="yes"

RC_PLUG_SERVICES="!net.*"
RC_NET_STRICT_CHECKING="no"

RC_DOWN_INTERFACE="yes"
RC_VOLUME_ORDER="raid evms lvm dm"

RC_VERBOSE="yes"
RC_BOOTLOG="yes"

RC_BOOTCHART="no"
RC_USE_FSTAB="no"

RC_USE_CONFIG_PROFILE="yes"
RC_FORCE_AUTO="no"
RC_DEVICES="auto"

RC_DEVICE_TARBALL="no"
RC_SWAP_ERASE="no"

RC_RETRY_KILL="yes"
RC_RETRY_TIMEOUT=1
RC_RETRY_COUNT=5
RC_FAIL_ON_ZOMBIE="no"
RC_KILL_CHILDREN="no"
RC_WAIT_ON_START="0.1"
Idea anyone?
Top
garlik42
n00b
n00b
User avatar
Posts: 57
Joined: Tue Dec 17, 2002 6:10 pm
Location: Connecticut USA by the water ...

  • Quote

Post by garlik42 » Mon Aug 28, 2006 5:25 pm

I just tried the same combo of RC_PARALLEL_STARTUP="yes" and RC_NET_STRICT_CHECKING="no"
And things started just fine, this is a VERY slow system, and possibly there is some form of timing loop.

I would set RC_NET_STRICT_CHECKING="yes", because of the dual network interface issue.
Top
thorheimdall
n00b
n00b
Posts: 53
Joined: Thu Dec 08, 2005 3:12 am
Location: Quebec

  • Quote

Post by thorheimdall » Tue Aug 29, 2006 3:09 am

I would set RC_NET_STRICT_CHECKING="yes", because of the dual network interface issue.
In the "rc" file, this is what they say about the meaning of the possible values of RC_NET_STRICT_CHECKING:

Code: Select all

no - This basically means that at least one net.* service besides net.lo must be up.  This can be used by notebook users that have a wifi and a static nic, and only wants one up at any given time to have the 'net' service seen as up.

yes - For this ALL network interfaces MUST be up for the 'net' service to be considered up.
As I said, I only have one of the two interfaces connected at any given time (my computer is a laptop, either connected to a wired network or a wireless network), so it sounds to me I should use "no" for RC_NET_STRICT_CHECKING.

I use DHCP for both interfaces, so it may take some time before the connected interface is actually up. Maybe the sshd init script doesn't wait at all for the interface to be up? If it is the case, is there a way to make it wait until one interface is up (has got its IP address)? This is strange because it was working before the baselayout updates.

Someone has an idea?
Top
garlik42
n00b
n00b
User avatar
Posts: 57
Joined: Tue Dec 17, 2002 6:10 pm
Location: Connecticut USA by the water ...

  • Quote

Post by garlik42 » Thu Aug 31, 2006 1:28 pm

What happened when you tried RC_NET_STRICT_CHECKING="yes" ?
Top
thorheimdall
n00b
n00b
Posts: 53
Joined: Thu Dec 08, 2005 3:12 am
Location: Quebec

  • Quote

Post by thorheimdall » Tue Oct 10, 2006 12:32 am

What happened when you tried RC_NET_STRICT_CHECKING="yes" ?
It doesn't work either! I realized recently that this problem occurs for other services : netmount and ddclient. The problem seems related to this topic : [topic=494381]XDM breaks net based services in boot[/topic]

For now, I use RC_PARALLEL_STARTUP="no" (all services start properly), but I'd really like this problem solved and use parallel startup!
Top
thorheimdall
n00b
n00b
Posts: 53
Joined: Thu Dec 08, 2005 3:12 am
Location: Quebec

  • Quote

Post by thorheimdall » Thu Oct 12, 2006 12:51 am

bump
:)
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

  • Quote

Post by desultory » Thu Oct 12, 2006 2:31 am

Has RC_NET_STRICT_CHECKING="none" been tried in this case?
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Tue Oct 17, 2006 5:20 pm

Hello thorheimdall

Same problem over here - baselayout-1.12.5-r2 -:
- same config as you: net.eth0 wired and .eth1 wired network.
- ntpd and sshd do not start when I use the wireless
- they both start when I use the wired network
- I can start both of them by hand
- both are added to runlevel default

In the past I had the same problem, it was solved by upgrading to baselayout-1.12.1 although I am not 100% sure it was the result of only this upgrade. (http://forums.gentoo.org/viewtopic-t-43 ... ight-.html)

I tried baselayout-1.12.4-r8 but without a positive result.

edit
Believe or not.
After this I made a reboot, it took a long time before I loggin in.
So the wireless network was up before I logged in and... ntpd and sshd were running!

It looks likes ntpd runs only if the wireless is up before login, but to be sure about this I have to run more tests
/edit
Top
thorheimdall
n00b
n00b
Posts: 53
Joined: Thu Dec 08, 2005 3:12 am
Location: Quebec

  • Quote

Post by thorheimdall » Wed Oct 18, 2006 1:07 am

desultory:
Has RC_NET_STRICT_CHECKING="none" been tried in this case?
All net based services start when this option is set. But it should work with the options RC_NET_STRICT_CHECKING="no" and RC_PARALLEL_STARTUP="yes" (as before the updates of baselayout)

aries:
It looks likes ntpd runs only if the wireless is up before login, but to be sure about this I have to run more tests
It seems our problem is closely related to this topic: [topic=494381]XDM breaks net based services in boot[/topic]. For some people, if XDM is in the default runlevel and parallel startup is activated (RC_PARALLEL_STARTUP="yes"), then net based services (as sshd and ntpd) don't start even if there is one network interface up and running (for RC_NET_STRICT_CHECKING="no"). I check that thread everyday in the hope they find a solution!
Top
Post Reply

9 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic