public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] offline runlevel
@ 2006-11-15 18:09 Roger Mason
  2006-11-15 19:29 ` Flophouse Joe
  2006-11-15 19:57 ` Richard Fish
  0 siblings, 2 replies; 6+ messages in thread
From: Roger Mason @ 2006-11-15 18:09 UTC (permalink / raw
  To: gentoo-user

Hello,

I am following the runlevel guide
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 
to set up an offline runlevel for my laptop.  I have in
/etc/runlevels/offline:

rmason # rc-update show offline
               acpid | offline 
            cpufreqd | offline 
                 gpm | offline 
               ivman | offline 
               local | offline 
              pcmcia | offline 
           syslog-ng | offline 
          vixie-cron | offline

Based on the ouput of <scriptname> ineed, nothing there needs
net.eth0.

When I boot into the kernel with this entry in grub.conf:

# For booting GNU/Linux
title  Gentoo Linux 2.6.17-gentoo-r8 (offline)
root (hd0,0)
kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/sda3 softlevel=offline

the system still tries to start eth0 and then wastes time while dhcpd
times out.

I am not sure what what I have done wrong.  Can anyone help?

Thanks,
Roger Mason

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] offline runlevel
  2006-11-15 18:09 [gentoo-user] offline runlevel Roger Mason
@ 2006-11-15 19:29 ` Flophouse Joe
  2006-11-15 20:41   ` Roger Mason
  2006-11-15 19:57 ` Richard Fish
  1 sibling, 1 reply; 6+ messages in thread
From: Flophouse Joe @ 2006-11-15 19:29 UTC (permalink / raw
  To: gentoo-user

On Wed, 15 Nov 2006, Roger Mason wrote:

> I am following the runlevel guide
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4
> to set up an offline runlevel for my laptop.

> When I boot into the kernel with this entry in grub.conf:
>
> # For booting GNU/Linux
> title  Gentoo Linux 2.6.17-gentoo-r8 (offline)
> root (hd0,0)
> kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/sda3 softlevel=offline
>
> the system still tries to start eth0 and then wastes time while dhcpd
> times out.

Is it possible that there are still some services set to start in the
"boot" runlevel that would be more appropriate in the "default" or
"offline" runlevel?

Joe
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] offline runlevel
  2006-11-15 18:09 [gentoo-user] offline runlevel Roger Mason
  2006-11-15 19:29 ` Flophouse Joe
@ 2006-11-15 19:57 ` Richard Fish
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Fish @ 2006-11-15 19:57 UTC (permalink / raw
  To: gentoo-user

On 11/15/06, Roger Mason <rmason@esd.mun.ca> wrote:
> the system still tries to start eth0 and then wastes time while dhcpd
> times out.

Probably you need one or both of the following in /etc/conf.d/rc:

RC_PLUG_SERVICES="!net.eth0"
RC_NET_STRICT_CHECKING="lo"

BUT, what you probably really want is to emerge ifplugd.  With this
installed, gentoo will detect when there is a cable connected and
startup networking automagically when a cable is inserted.  It should
also avoid timing out on dhcp requests when no link is detected.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] offline runlevel
  2006-11-15 19:29 ` Flophouse Joe
@ 2006-11-15 20:41   ` Roger Mason
  2006-11-15 21:45     ` Devon Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Roger Mason @ 2006-11-15 20:41 UTC (permalink / raw
  To: gentoo-user

Flophouse Joe <flophousejoe-gentoo-user-xdzvne@halibutdepot.org> writes:

> Is it possible that there are still some services set to start in the
> "boot" runlevel that would be more appropriate in the "default" or
> "offline" runlevel?
>
> Joe

Well, the only script in boot that looks promising is net.lo: I had
considered removing it from boot but decided to ask before (possibly) making a
big problem from a small one.

Thanks,
Roger

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] offline runlevel
  2006-11-15 20:41   ` Roger Mason
@ 2006-11-15 21:45     ` Devon Miller
  2006-11-16 12:22       ` Roger Mason
  0 siblings, 1 reply; 6+ messages in thread
From: Devon Miller @ 2006-11-15 21:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

try grepping for need in /etc/runlevels/boot/* and /etc/runlevels/offline/*
to see if any of your boot or offline services has a dependency on
networking..

If there is something that requires net, see if setting
RC_NET_STRICT_CHECKING="lo" in /etc/conf.d/rc will do the trick. If that
doesn;t work, then you may need to remove the service from that softlevel.

Also check for PROGRAM keys in your /etc/udev/rules.d/* to make sure it's
not udev trying to start the device. However, I don't believe there's
anything like that in the default rule sets.

And, I'll second Richard, "emerge ifplugd"

dcm

On 11/15/06, Roger Mason <rmason@esd.mun.ca> wrote:
>
> Flophouse Joe <flophousejoe-gentoo-user-xdzvne@halibutdepot.org> writes:
>
> > Is it possible that there are still some services set to start in the
> > "boot" runlevel that would be more appropriate in the "default" or
> > "offline" runlevel?
> >
> > Joe
>
> Well, the only script in boot that looks promising is net.lo: I had
> considered removing it from boot but decided to ask before (possibly)
> making a
> big problem from a small one.
>
> Thanks,
> Roger
>
> --
> gentoo-user@gentoo.org mailing list
>
>

[-- Attachment #2: Type: text/html, Size: 1674 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] offline runlevel
  2006-11-15 21:45     ` Devon Miller
@ 2006-11-16 12:22       ` Roger Mason
  0 siblings, 0 replies; 6+ messages in thread
From: Roger Mason @ 2006-11-16 12:22 UTC (permalink / raw
  To: gentoo-user

"Devon Miller" <devon.c.miller@gmail.com> writes:

>    And, I'll second Richard, "emerge ifplugd"
>    dcm

Thanks Richard Joe & Devon, ifplugd is working perfectly for me.

Roger

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-16 12:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 18:09 [gentoo-user] offline runlevel Roger Mason
2006-11-15 19:29 ` Flophouse Joe
2006-11-15 20:41   ` Roger Mason
2006-11-15 21:45     ` Devon Miller
2006-11-16 12:22       ` Roger Mason
2006-11-15 19:57 ` Richard Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox