public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dan Cowsill <danthehat@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Init Scripts Not Starting
Date: Wed, 4 Jan 2012 06:53:18 -0800	[thread overview]
Message-ID: <CADsG24os=OVaiGWuaAdpDfG93GMiH+T1qiw_BKftsQnmsYaPfA@mail.gmail.com> (raw)
In-Reply-To: <20120104111757.GA31450@ksp.sk>

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

On Wed, Jan 4, 2012 at 3:17 AM, YoYo Siska <yoyo@gl.ksp.sk> wrote:

> On Tue, Jan 03, 2012 at 08:31:08PM -0800, Dan Cowsill wrote:
> > Hey list,
> >
> > A little while after I compiled Gnome and got things running, I lost the
> > ability to add scripts to the default runlevel.  I can run rc-update add
> > xdm default, for example, and the xdm symlink will appear in
> > /etc/runlevels/default, and that symlink will indeed point to
> > /etc/init.d/xdm, but xdm will not start.  Further to that, there's no
> > evidence to indicate that RC is even trying to start it.  No errors, no
> > logs, no nothing.  Same goes for virtualbox-guest-additions and sysklogd.
> >  I tried logging rc and got absolutely nowhere.  There's nothing overt in
> > dmesg either.
> >
> > The really fun part is these scripts function perfectly if I run them
> after
> > boot.
> >
> > Since there's no evidence of this problem in any logs or during the
> startup
> > process, I assume there is no problem and I am doing it wrong.
>
> Is it possible that you are booting into a different runlevel that
> default ? (there's a softlevel=... kernel cmdline parameter)
>
> What happens if (after boot) you just run
>
> rc
>
> (should start all service in the current runlevel, that are not
> started yet)  or
>
> rc default
>
> (should swithc to 'default' runlevel and start all services) ?
>
> Could you post the output of  rc-status -a ?
> And maybe also grep rc /etc/inittab ?
>
> For xdm there is one additional thing to check: xdm can be disabled
> through a 'nox' kernel cmdline option or an /etc/.noxdm file...
> But in that case the initscript itself should start and just print a
> message, that it is not starting the DM.
>
> yoyo
>
>
Hey, thanks for the reply.

Running rc or rc default returns immediately.  I am sure I am starting into
the default runlevel because ntp-client runs on default and it starts no
problem.

Output from grep rc /etc/inittab:
si::sysinit:/sbin/rc sysinit
rc::bootwait:/sbin/rc boot
l0:0:wait:/sbin/rc shutdown
l1:1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
su0:S:wait:/sbin/rc single

Output from rc-status -a:
Runlevel: default
 net.eth1                                                          [
 started  ]
 dbus                                                              [
 started  ]
 net.eth0                                                          [
 started  ]
 netmount                                                          [
 started  ]
 ntp-client                                                        [
 started  ]
 sshd                                                              [
 started  ]
 udev-postmount                                                    [
 started  ]
 local                                                             [
 started  ]
Runlevel: sysinit
 dmesg                                                             [
 started  ]
 udev                                                              [
 started  ]
 devfs                                                             [
 started  ]
Runlevel: boot
 hwclock                                                           [
 started  ]
 modules                                                           [
 started  ]
 fsck                                                              [
 started  ]
 root                                                              [
 started  ]
 mtab                                                              [
 started  ]
 localmount                                                        [
 started  ]
 sysctl                                                            [
 started  ]
 bootmisc                                                          [
 started  ]
 urandom                                                           [
 started  ]
 net.lo                                                            [
 started  ]
 termencoding                                                      [
 started  ]
 swap                                                              [
 started  ]
 keymaps                                                           [
 started  ]
 hostname                                                          [
 started  ]
 procfs                                                            [
 started  ]
Runlevel: shutdown
 killprocs                                                         [
 stopped  ]
 savecache                                                         [
 stopped  ]
 mount-ro                                                          [
 stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 sysfs                                                             [
 started  ]
Dynamic Runlevel: manual

Output from rc-update show:
             bootmisc | boot
                 dbus |      default
                devfs |                       sysinit
                dmesg |                       sysinit
                 fsck | boot
             hostname | boot
              hwclock | boot
              keymaps | boot
            killprocs |              shutdown
                local |      default
           localmount | boot
              modules | boot
             mount-ro |              shutdown
                 mtab | boot
             net.eth0 |      default
             net.eth1 |      default
               net.lo | boot
             netmount |      default
           ntp-client |      default
               procfs | boot
                 root | boot
            savecache |              shutdown
                 sshd |      default
                 swap | boot
               sysctl | boot
             sysklogd |      default
         termencoding | boot
                 udev |                       sysinit
       udev-postmount |      default
              urandom | boot
 virtualbox-guest-additions |      default
                  xdm |      default
            xdm-setup |      default

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

  reply	other threads:[~2012-01-04 14:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04  4:31 [gentoo-user] Init Scripts Not Starting Dan Cowsill
2012-01-04 11:17 ` YoYo Siska
2012-01-04 14:53   ` Dan Cowsill [this message]
2012-01-04 16:53     ` Neil Bothwick
2012-01-05  3:10       ` Dan Cowsill
2012-01-05 18:50         ` YoYo Siska
2012-01-04 18:50     ` YoYo Siska
2012-01-05 19:09     ` Pandu Poluan
2012-01-05 19:16       ` Pandu Poluan
2012-01-08  6:20         ` [gentoo-user] [SOLVED] " Dan Cowsill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADsG24os=OVaiGWuaAdpDfG93GMiH+T1qiw_BKftsQnmsYaPfA@mail.gmail.com' \
    --to=danthehat@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox