public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] rc runlevel act strangely
@ 2011-06-19 11:56 刘勇泰
  2011-06-19 12:27 ` Peter Humphrey
  0 siblings, 1 reply; 14+ messages in thread
From: 刘勇泰 @ 2011-06-19 11:56 UTC (permalink / raw
  To: gentoo-user

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

Hello everyone. I just buildup a new amd64 gentoo box using latest
stage3 tar ball. After installed Gnome things, I used "eselect rc add"
command to add some init scripts into default runlevel. The content of
/etc/runlevels/default directory is:

    acpid dbus NetworkManager udev-postmount alsasound local syslog-ng
    vixie-cron consolekit netmount system-tools-backends xdm

But after reboot, only syslog-ng vixie-cron net-mount and local started
and the others had just been ignored, and I can successfully run the
other init scripts manually after log in as root. Any advise about where
I could check?

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

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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-19 11:56 [gentoo-user] rc runlevel act strangely 刘勇泰
@ 2011-06-19 12:27 ` Peter Humphrey
  2011-06-19 12:40   ` Dale
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Humphrey @ 2011-06-19 12:27 UTC (permalink / raw
  To: gentoo-user

On Sunday 19 June 2011 12:56:13 刘勇泰 wrote:

> After installed Gnome things, I used "eselect rc add" command to add some
> init scripts into default runlevel.

The command you should have used is "rc-update add <service> default".

-- 
Rgds
Peter



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-19 12:27 ` Peter Humphrey
@ 2011-06-19 12:40   ` Dale
  2011-06-19 15:16     ` Peter Humphrey
  0 siblings, 1 reply; 14+ messages in thread
From: Dale @ 2011-06-19 12:40 UTC (permalink / raw
  To: gentoo-user

Peter Humphrey wrote:
> On Sunday 19 June 2011 12:56:13 刘勇泰 wrote:
>
>    
>> After installed Gnome things, I used "eselect rc add" command to add some
>> init scripts into default runlevel.
>>      
> The command you should have used is "rc-update add<service>  default".
>
>    

Actually, eselect is the new way.  I still use the old way myself but 
eselect should work just as well.

I suspect that something failed to start and the other services depend 
on what failed so it didn't start them.  Just a theory.

Dale

:-)  :-)



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-19 12:40   ` Dale
@ 2011-06-19 15:16     ` Peter Humphrey
  2011-06-19 15:38       ` Dale
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Humphrey @ 2011-06-19 15:16 UTC (permalink / raw
  To: gentoo-user

On Sunday 19 June 2011 13:40:47 Dale wrote:
> Peter Humphrey wrote:
> > The command you should have used is "rc-update add<service>  default".
> 
> Actually, eselect is the new way.  I still use the old way myself but
> eselect should work just as well.

How so? I've never come across this idea til today.

-- 
Rgds
Peter



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-19 15:16     ` Peter Humphrey
@ 2011-06-19 15:38       ` Dale
  2011-06-19 21:36         ` Peter Humphrey
  0 siblings, 1 reply; 14+ messages in thread
From: Dale @ 2011-06-19 15:38 UTC (permalink / raw
  To: gentoo-user

Peter Humphrey wrote:
> On Sunday 19 June 2011 13:40:47 Dale wrote:
>    
>> Peter Humphrey wrote:
>>      
>>> The command you should have used is "rc-update add<service>   default".
>>>        
>> Actually, eselect is the new way.  I still use the old way myself but
>> eselect should work just as well.
>>      
> How so? I've never come across this idea til today.
>
>    

I don't know when it got added but it is on mine.  This is in the help page:

   rc                        Manage /etc/init.d scripts in runlevels

It works something like this:

root@fireball / # eselect rc add xdm default
Adding xdm to following runlevels
   default                   [skipped]
root@fireball / #

It was skipped because it was already there but that's how it works.

Neat huh?

Dale

:-)  :-)



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-19 15:38       ` Dale
@ 2011-06-19 21:36         ` Peter Humphrey
  2011-06-19 21:47           ` William Hubbs
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Humphrey @ 2011-06-19 21:36 UTC (permalink / raw
  To: gentoo-user

On Sunday 19 June 2011 16:38:35 Dale wrote:

> I don't know when it got added but it is on mine.  This is in the help
> page:
> 
>    rc                        Manage /etc/init.d scripts in runlevels
> 
> It works something like this:
> 
> root@fireball / # eselect rc add xdm default
> Adding xdm to following runlevels
>    default                   [skipped]
> root@fireball / #
> 
> It was skipped because it was already there but that's how it works.
> 
> Neat huh?

The old method did much the same, but with openrc and baselayout-2 we lost 
the alphabetical ordering of the entries.

Now, if I tell it $ eselect rc list

I get:

Available init scripts
  acpid                     default
  alsasound                 default
  apache2                   default
  atom                      
  bootmisc                  boot
  chronyd                   default
  consolefont               boot
  consolekit                
  cpufrequtils              default
  crypto-loop               
  cupsd                     default
  dbus                      default
  devfs                     sysinit
  device-mapper             boot
  dmesg                     sysinit
  dmeventd                  
  dnsmasq                   default
  fancontrol                
  fsck                      boot
  fuse                      
  git-daemon                
  gkrellmd                  
  gpm                       no-x
  hdparm                    
  hostname                  boot
  hwclock                   boot
  keymaps                   boot
  killprocs                 shutdown
  lm_sensors                default
  local                     default
  localmount                boot
  lvm                       boot
  lvm-monitoring            
  mdadm                     
  mdev                      
  mdraid                    
  modules                   boot
  mount-ro                  shutdown
  mtab                      boot
  mysql                     default
  mysqlmanager              
  net.eth0                  default
  net.lo                    boot
  netmount                  default
  network                   
  nfs                       
  nfsmount                  default
  nscd                      
  numlock                   boot
  pciparm                   
  portagexsd                
  procfs                    boot
  pwcheck                   
  pydoc-2.7                 
  pydoc-3.1                 
  root                      boot
  rpc.idmapd                
  rpc.pipefs                
  rpc.statd                 
  rpcbind                   
  rsyncd                    
  saslauthd                 
  savecache                 shutdown
  smartd                    default
  spamd                     
  sshd                      default
  staticroute               
  swap                      boot
  swclock                   
  sysctl                    boot
  sysfs                     
  syslog-ng                 default
  termencoding              boot
  twistd                    
  udev                      sysinit
  udev-dev-tarball          
  udev-mount                
  udev-postmount            default
  urandom                   boot
  vixie-cron                default
  xdm                       default
  xdm-setup                 

It's incomplete - what about all the services that are in more than one run-
level? It only lists the first run-level a service is in, for some value of 
"first".

This is the old way:

$ sudo rc-update -s -v
                local |                        default                     
              apache2 |                        default          no-x       
                 mtab | boot                                               
            saslauthd |                                                    
             net.eth0 |                        default          no-x       
               procfs | boot                                               
              urandom | boot                                               
           rpc.pipefs |                                                    
                 mdev |                                                    
                cupsd |                        default          no-x       
             bootmisc | boot                                               
                  nfs |                                                    
              chronyd |                        default          no-x       
                 fsck | boot                                               
                 sshd |                        default          no-x       
      vboxweb-service |                        default                     
            killprocs |                                shutdown            
           lm_sensors |                        default                     
            xdm-setup |                                                    
                 nscd |                                                    
               hdparm |                                                    
             nfsmount |                        default          no-x       
                 swap | boot                                               
           vixie-cron |              nonetwork default          no-x       
           git-daemon |                                                    
          crypto-loop |                                                    
                  xdm |                        default                     
            pydoc-3.1 |                                                    
             dmeventd |                                                    
               net.lo | boot                                               
                mysql |                        default          no-x       
     udev-dev-tarball |                                                    
            savecache |                                shutdown            
                  lvm | boot                                               
           consolekit |                                                    
              rpcbind |                                                    
                 fuse |                                                    
              dnsmasq |                        default          no-x       
        device-mapper | boot                                               
                acpid |                        default          no-x       
         termencoding | boot                                               
           rpc.idmapd |                                                    
           localmount | boot                                               
          staticroute |                                                    
                 root | boot                                               
                dmesg |      sysinit                                       
              hwclock | boot                                               
              network |                                                    
              vboxdrv |                        default                     
              pciparm |                                                    
                 atom |                                                    
           udev-mount |                                                    
              pwcheck |                                                    
       lvm-monitoring |                                                    
         mysqlmanager |                                                    
          consolefont | boot                                               
           fancontrol |                                                    
            rpc.statd |                                                    
            alsasound |                        default                     
               twistd |                                                    
             netmount |                        default          no-x       
                  gpm |              nonetwork                  no-x       
 vboxballoonctrl-service |                        default                     
                devfs |      sysinit                                       
              swclock |                                                    
                 dbus |                        default                     
              numlock | boot                                               
               rsyncd |                                                    
                sysfs |                                                    
               sysctl | boot                                               
            syslog-ng |              nonetwork default          no-x       
         cpufrequtils |                        default          no-x       
                spamd |                                                    
              keymaps | boot                                               
               mdraid |                                                    
            pydoc-2.7 |                                                    
           portagexsd |                                                    
                 udev |      sysinit                                       
             gkrellmd |                                                    
       udev-postmount |                        default          no-x       
                mdadm |                                                    
             hostname | boot                                               
             mount-ro |                                shutdown            
              modules | boot                                               
               smartd |              nonetwork default          no-x       

Far more information, but so much harder to find it. Methinks development is 
not yet finished.

-- 
Rgds
Peter



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-19 21:36         ` Peter Humphrey
@ 2011-06-19 21:47           ` William Hubbs
  2011-06-20  1:33             ` Dale
  0 siblings, 1 reply; 14+ messages in thread
From: William Hubbs @ 2011-06-19 21:47 UTC (permalink / raw
  To: gentoo-user

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

On Sun, Jun 19, 2011 at 10:36:47PM +0100, Peter Humphrey wrote:
> On Sunday 19 June 2011 16:38:35 Dale wrote:
> 
> > I don't know when it got added but it is on mine.  This is in the help
> > page:
> > 
> >    rc                        Manage /etc/init.d scripts in runlevels
> > 
> > It works something like this:
> > 
> > root@fireball / # eselect rc add xdm default
> > Adding xdm to following runlevels
> >    default                   [skipped]
> > root@fireball / #
> > 
> > It was skipped because it was already there but that's how it works.
> > 
> > Neat huh?

The official way to add or delete services is to use rc-update. I do not
know anything about using eselect rc to do this.

Thanks,

William

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-19 21:47           ` William Hubbs
@ 2011-06-20  1:33             ` Dale
  2011-06-20 16:51               ` Per-Erik Westerberg
  0 siblings, 1 reply; 14+ messages in thread
From: Dale @ 2011-06-20  1:33 UTC (permalink / raw
  To: gentoo-user

William Hubbs wrote:
> On Sun, Jun 19, 2011 at 10:36:47PM +0100, Peter Humphrey wrote:
>    
>> On Sunday 19 June 2011 16:38:35 Dale wrote:
>>
>>      
>>> I don't know when it got added but it is on mine.  This is in the help
>>> page:
>>>
>>>     rc                        Manage /etc/init.d scripts in runlevels
>>>
>>> It works something like this:
>>>
>>> root@fireball / # eselect rc add xdm default
>>> Adding xdm to following runlevels
>>>     default                   [skipped]
>>> root@fireball / #
>>>
>>> It was skipped because it was already there but that's how it works.
>>>
>>> Neat huh?
>>>        
> The official way to add or delete services is to use rc-update. I do not
> know anything about using eselect rc to do this.
>
> Thanks,
>
> William
>    

Is this documented somewhere?  Using eselect for this I mean.  Surely 
the OP saw it in a doc somewhere.  Sort of doubtful that he/she pulled 
this out of their hat on their own.

Dale

:-)  :-)



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-20  1:33             ` Dale
@ 2011-06-20 16:51               ` Per-Erik Westerberg
  2011-06-20 17:24                 ` Dale
  0 siblings, 1 reply; 14+ messages in thread
From: Per-Erik Westerberg @ 2011-06-20 16:51 UTC (permalink / raw
  To: gentoo-user

sön 2011-06-19 klockan 20:33 -0500 skrev Dale:
> William Hubbs wrote:
> > On Sun, Jun 19, 2011 at 10:36:47PM +0100, Peter Humphrey wrote:
> >    
> >> On Sunday 19 June 2011 16:38:35 Dale wrote:
> >>
> >>      
> >>> I don't know when it got added but it is on mine.  This is in the help
> >>> page:
> >>>
> >>>     rc                        Manage /etc/init.d scripts in runlevels
> >>>
> >>> It works something like this:
> >>>
> >>> root@fireball / # eselect rc add xdm default
> >>> Adding xdm to following runlevels
> >>>     default                   [skipped]
> >>> root@fireball / #
> >>>
> >>> It was skipped because it was already there but that's how it works.
> >>>
> >>> Neat huh?
> >>>        
> > The official way to add or delete services is to use rc-update. I do not
> > know anything about using eselect rc to do this.
> >
> > Thanks,
> >
> > William
> >    
> 
> Is this documented somewhere?  Using eselect for this I mean.  Surely 
> the OP saw it in a doc somewhere.  Sort of doubtful that he/she pulled 
> this out of their hat on their own.
> 
> Dale
> 
> :-)  :-)
> 

Well, issuing "eselect" lists "rc" as a module and "man rc.eselect"
gives you a list of actions to use and their description :

NAME
       rc.eselect - Runlevel configuration module

SYNOPSIS
       eselect rc [help|usage|version]
       eselect rc add script [runlevel...]
       eselect rc delete script [runlevel...]
       eselect rc list [runlevel]
       eselect rc pause script [script...]
       eselect rc restart script [script...]
       eselect rc show [runlevel...]
       eselect rc start script [script...]
       eselect rc stop script [script...]

  ;) / Per-Erik




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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-20 16:51               ` Per-Erik Westerberg
@ 2011-06-20 17:24                 ` Dale
  2011-06-20 22:55                   ` Neil Bothwick
  0 siblings, 1 reply; 14+ messages in thread
From: Dale @ 2011-06-20 17:24 UTC (permalink / raw
  To: gentoo-user

Per-Erik Westerberg wrote:
>
> Well, issuing "eselect" lists "rc" as a module and "man rc.eselect"
> gives you a list of actions to use and their description :
>
> NAME
>         rc.eselect - Runlevel configuration module
>
> SYNOPSIS
>         eselect rc [help|usage|version]
>         eselect rc add script [runlevel...]
>         eselect rc delete script [runlevel...]
>         eselect rc list [runlevel]
>         eselect rc pause script [script...]
>         eselect rc restart script [script...]
>         eselect rc show [runlevel...]
>         eselect rc start script [script...]
>         eselect rc stop script [script...]
>
>    ;) / Per-Erik
>
>    

I looked on Gentoo.org but I couldn't find it documented there.  I found 
eselect itself but nothing on the rc part.  I was curious as to where 
the OP found it or if we have a user who actually read a man page 
first.  O_O  Imagine that.  lol

I'm glad you posted the rc.eselect man page tho.  I didn't know about 
that.  Now I can go dig out the others and read up on them too.

Where did our OP go anyway?

Dale

:-)  :-)



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-20 17:24                 ` Dale
@ 2011-06-20 22:55                   ` Neil Bothwick
  2011-06-20 23:09                     ` Dale
  0 siblings, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2011-06-20 22:55 UTC (permalink / raw
  To: gentoo-user

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

On Mon, 20 Jun 2011 12:24:26 -0500, Dale wrote:

> I looked on Gentoo.org but I couldn't find it documented there.  I
> found eselect itself but nothing on the rc part.  I was curious as to
> where the OP found it or if we have a user who actually read a man page 
> first.  O_O  Imagine that.  lol

It was only a few days ago that eselect was discussed, with those with
poor memories saying that they had to run it with no options to get a
list of modules. It appears that someone looked at that list.


-- 
Neil Bothwick

If bankers can count, how come they have eight windows and only four
tellers?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-20 22:55                   ` Neil Bothwick
@ 2011-06-20 23:09                     ` Dale
  2011-06-21  7:46                       ` Thanasis
       [not found]                       ` <201106211602.24021.peter@humphrey.ukfsn.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Dale @ 2011-06-20 23:09 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick wrote:
> On Mon, 20 Jun 2011 12:24:26 -0500, Dale wrote:
>
>    
>> I looked on Gentoo.org but I couldn't find it documented there.  I
>> found eselect itself but nothing on the rc part.  I was curious as to
>> where the OP found it or if we have a user who actually read a man page
>> first.  O_O  Imagine that.  lol
>>      
> It was only a few days ago that eselect was discussed, with those with
> poor memories saying that they had to run it with no options to get a
> list of modules. It appears that someone looked at that list.
>
>    

I just wonder if it is ready for "primetime" since it is not 
documented?  Since the OP had trouble with it, maybe we should be doing 
it the old way because it still has a bug somewhere.

Then again, maybe the docs team is running a bit behind?  Maybe it is 
stable and should work.

This may be pointless since the OP seems to have disappeared.  lol

Dale

:-)  :-)



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

* Re: [gentoo-user] rc runlevel act strangely
  2011-06-20 23:09                     ` Dale
@ 2011-06-21  7:46                       ` Thanasis
       [not found]                       ` <201106211602.24021.peter@humphrey.ukfsn.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Thanasis @ 2011-06-21  7:46 UTC (permalink / raw
  To: gentoo-user

on 06/21/2011 02:09 AM Dale wrote the following:
> This may be pointless since the OP seems to have disappeared.

Might he be just a chinese spammer?



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

* Re: [gentoo-user] rc runlevel act strangely
       [not found]                       ` <201106211602.24021.peter@humphrey.ukfsn.org>
@ 2011-06-21 15:14                         ` Dale
  0 siblings, 0 replies; 14+ messages in thread
From: Dale @ 2011-06-21 15:14 UTC (permalink / raw
  To: gentoo-user

Peter Humphrey wrote:
> On Tuesday 21 June 2011 00:09:25 Dale wrote:
>
>    
>> Maybe it is stable and should work.
>>      
> It isn't, and it doesn't. It only displays one run-level per service.
>
>    

That may be why it is not documented yet then.  I hope that the OP now 
knows to use the old way.  Where ever he is.  o_O

Dale

:-)  :-)



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

end of thread, other threads:[~2011-06-21 16:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-19 11:56 [gentoo-user] rc runlevel act strangely 刘勇泰
2011-06-19 12:27 ` Peter Humphrey
2011-06-19 12:40   ` Dale
2011-06-19 15:16     ` Peter Humphrey
2011-06-19 15:38       ` Dale
2011-06-19 21:36         ` Peter Humphrey
2011-06-19 21:47           ` William Hubbs
2011-06-20  1:33             ` Dale
2011-06-20 16:51               ` Per-Erik Westerberg
2011-06-20 17:24                 ` Dale
2011-06-20 22:55                   ` Neil Bothwick
2011-06-20 23:09                     ` Dale
2011-06-21  7:46                       ` Thanasis
     [not found]                       ` <201106211602.24021.peter@humphrey.ukfsn.org>
2011-06-21 15:14                         ` Dale

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