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

Reply via email to