public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] In which order services are started?
@ 2010-04-20 17:47 Jarry
  2010-04-20 18:20 ` Bartosz Szatkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Jarry @ 2010-04-20 17:47 UTC (permalink / raw
  To: gentoo-user

Hi,
$SUBJECT says it all:

Is there any way to find out in which order services are
started during boot-up (except for looking at boot-up
screen and making notes)?

I tried to figure it out looking into /etc/init.d scripts,
but there are a lot of depend/need/use/before statements,
so I quicky lost trace...

Jarry

-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



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

* Re: [gentoo-user] In which order services are started?
  2010-04-20 17:47 [gentoo-user] In which order services are started? Jarry
@ 2010-04-20 18:20 ` Bartosz Szatkowski
  2010-04-20 19:28 ` Neil Bothwick
  2010-04-21  9:24 ` Alex Schuster
  2 siblings, 0 replies; 13+ messages in thread
From: Bartosz Szatkowski @ 2010-04-20 18:20 UTC (permalink / raw
  To: gentoo-user

Dnia 2010-04-20, wto o godzinie 19:47 +0200, Jarry pisze:
> Hi,
> $SUBJECT says it all:
> 
> Is there any way to find out in which order services are
> started during boot-up (except for looking at boot-up
> screen and making notes)?
> 
> I tried to figure it out looking into /etc/init.d scripts,
> but there are a lot of depend/need/use/before statements,
> so I quicky lost trace...
> 
> Jarry
> 
You could use the "interactive way" so you will be prompted to accept
every service starts. You can do this by pouching "I" during OpenRC
start (or something like this - there is some kind of message, during
OpenRC start, something like "Press "I" for interactive mode")

-- 
Bartosz Szatkowski
KeyFP: 1568 D5A7 B14C 0727 1C61 ACFB ABDE C08A DDB7 1F70

The freedom to study how a program works, and adapt it to your needs
(freedom 1)




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

* Re: [gentoo-user] In which order services are started?
  2010-04-20 17:47 [gentoo-user] In which order services are started? Jarry
  2010-04-20 18:20 ` Bartosz Szatkowski
@ 2010-04-20 19:28 ` Neil Bothwick
  2010-04-21  0:01   ` Peter Humphrey
  2010-04-21  7:50   ` Florian Philipp
  2010-04-21  9:24 ` Alex Schuster
  2 siblings, 2 replies; 13+ messages in thread
From: Neil Bothwick @ 2010-04-20 19:28 UTC (permalink / raw
  To: gentoo-user

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

On Tue, 20 Apr 2010 19:47:55 +0200, Jarry wrote:

> Is there any way to find out in which order services are
> started during boot-up (except for looking at boot-up
> screen and making notes)?

You could turn on boot logging in rc.conf and look at /var/log/rc.log.


-- 
Neil Bothwick

Experience is what you get when you didn't get what you wanted.

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

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

* Re: [gentoo-user] In which order services are started?
  2010-04-20 19:28 ` Neil Bothwick
@ 2010-04-21  0:01   ` Peter Humphrey
  2010-04-21  8:04     ` Neil Bothwick
  2010-04-21  7:50   ` Florian Philipp
  1 sibling, 1 reply; 13+ messages in thread
From: Peter Humphrey @ 2010-04-21  0:01 UTC (permalink / raw
  To: gentoo-user

On Tuesday 20 April 2010 20:28:42 Neil Bothwick wrote:
> On Tue, 20 Apr 2010 19:47:55 +0200, Jarry wrote:
> > Is there any way to find out in which order services are
> > started during boot-up (except for looking at boot-up
> > screen and making notes)?
> 
> You could turn on boot logging in rc.conf and look at
> /var/log/rc.log.

I think Jarry wanted to know what to tweak to change the order. I wanted 
to know this as well not long ago, but I didn't have the energy to chase 
it. (I wanted gpm to be started earlier in the sequence but without 
putting it in the boot run level.)

-- 
Rgds
Peter.



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

* Re: [gentoo-user] In which order services are started?
  2010-04-20 19:28 ` Neil Bothwick
  2010-04-21  0:01   ` Peter Humphrey
@ 2010-04-21  7:50   ` Florian Philipp
  2010-04-21  7:59     ` Neil Bothwick
  1 sibling, 1 reply; 13+ messages in thread
From: Florian Philipp @ 2010-04-21  7:50 UTC (permalink / raw
  To: gentoo-user

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

Am 20.04.2010 21:28, schrieb Neil Bothwick:
> On Tue, 20 Apr 2010 19:47:55 +0200, Jarry wrote:
> 
>> Is there any way to find out in which order services are
>> started during boot-up (except for looking at boot-up
>> screen and making notes)?
> 
> You could turn on boot logging in rc.conf and look at /var/log/rc.log.
> 
> 

How do I do this?
My rc.conf doesn't contain anything that looks like a fitting parameter.
There is no man-page for rc.conf, either.

Thanks in advance,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

* Re: [gentoo-user] In which order services are started?
  2010-04-21  7:50   ` Florian Philipp
@ 2010-04-21  7:59     ` Neil Bothwick
  0 siblings, 0 replies; 13+ messages in thread
From: Neil Bothwick @ 2010-04-21  7:59 UTC (permalink / raw
  To: gentoo-user

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

On Wed, 21 Apr 2010 09:50:07 +0200, Florian Philipp wrote:

> > You could turn on boot logging in rc.conf and look at /var/log/rc.log.

> How do I do this?
> My rc.conf doesn't contain anything that looks like a fitting parameter.
> There is no man-page for rc.conf, either.

rc_logger="YES"

in /etc/rc.conf for openrc. Baselayout1 has a similar setting somewhere.


-- 
Neil Bothwick

If Microsoft made cars:
"The airbag system would ask "are you sure?" before deploying."

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

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

* Re: [gentoo-user] In which order services are started?
  2010-04-21  0:01   ` Peter Humphrey
@ 2010-04-21  8:04     ` Neil Bothwick
  0 siblings, 0 replies; 13+ messages in thread
From: Neil Bothwick @ 2010-04-21  8:04 UTC (permalink / raw
  To: gentoo-user

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

On Wed, 21 Apr 2010 01:01:00 +0100, Peter Humphrey wrote:

> > > Is there any way to find out in which order services are
> > > started during boot-up (except for looking at boot-up
> > > screen and making notes)?  
> > 
> > You could turn on boot logging in rc.conf and look at
> > /var/log/rc.log.  
> 
> I think Jarry wanted to know what to tweak to change the order. I
> wanted to know this as well not long ago, but I didn't have the energy
> to chase it. (I wanted gpm to be started earlier in the sequence but
> without putting it in the boot run level.)

If he did, that's not what he asked. You change the order by adding
before/after statements to the scripts in /etc/init.d. I believe with
openrc you can have a similar effect by setting rc_after or rc_before in
the corresponding file in /etc/conf.d. I've never tried this but it is
documented in /etc/rc.conf.


-- 
Neil Bothwick

IBM: Itty Bitty Mentality

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

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

* Re: [gentoo-user] In which order services are started?
  2010-04-20 17:47 [gentoo-user] In which order services are started? Jarry
  2010-04-20 18:20 ` Bartosz Szatkowski
  2010-04-20 19:28 ` Neil Bothwick
@ 2010-04-21  9:24 ` Alex Schuster
  2010-04-21 10:05   ` Dale
  2 siblings, 1 reply; 13+ messages in thread
From: Alex Schuster @ 2010-04-21  9:24 UTC (permalink / raw
  To: gentoo-user

Jarry writes:

> Is there any way to find out in which order services are
> started during boot-up (except for looking at boot-up
> screen and making notes)?

I think the output of 'rc-status' shows the services in the right order.

	Wonko



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

* Re: [gentoo-user] In which order services are started?
  2010-04-21  9:24 ` Alex Schuster
@ 2010-04-21 10:05   ` Dale
  2010-04-21 10:21     ` YoYo siska
  2010-04-21 19:47     ` Alex Schuster
  0 siblings, 2 replies; 13+ messages in thread
From: Dale @ 2010-04-21 10:05 UTC (permalink / raw
  To: gentoo-user

Alex Schuster wrote:
> Jarry writes:
>
>    
>> Is there any way to find out in which order services are
>> started during boot-up (except for looking at boot-up
>> screen and making notes)?
>>      
> I think the output of 'rc-status' shows the services in the right order.
>
> 	Wonko
>
>    

It may be a coincidence but mine are alphabetical.  Also, mine only 
shows the ones in the current runlevel, default at the moment.  It does 
not list the ones in the boot runlevel.

Dale

:-)  :-)



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

* Re: [gentoo-user] In which order services are started?
  2010-04-21 10:05   ` Dale
@ 2010-04-21 10:21     ` YoYo siska
  2010-04-21 19:28       ` Dale
  2010-04-21 19:47     ` Alex Schuster
  1 sibling, 1 reply; 13+ messages in thread
From: YoYo siska @ 2010-04-21 10:21 UTC (permalink / raw
  To: gentoo-user

On Wed, Apr 21, 2010 at 05:05:46AM -0500, Dale wrote:
> Alex Schuster wrote:
>> Jarry writes:
>>
>>    
>>> Is there any way to find out in which order services are
>>> started during boot-up (except for looking at boot-up
>>> screen and making notes)?
>>>      
>> I think the output of 'rc-status' shows the services in the right order.
>>
>> 	Wonko
>>
>>    
>
> It may be a coincidence but mine are alphabetical.  Also, mine only  
> shows the ones in the current runlevel, default at the moment.  It does  
> not list the ones in the boot runlevel.

rc-status --all 


yoyo






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

* Re: [gentoo-user] In which order services are started?
  2010-04-21 10:21     ` YoYo siska
@ 2010-04-21 19:28       ` Dale
  0 siblings, 0 replies; 13+ messages in thread
From: Dale @ 2010-04-21 19:28 UTC (permalink / raw
  To: gentoo-user

YoYo siska wrote:
> On Wed, Apr 21, 2010 at 05:05:46AM -0500, Dale wrote:
>    
>> Alex Schuster wrote:
>>      
>>> Jarry writes:
>>>
>>>
>>>        
>>>> Is there any way to find out in which order services are
>>>> started during boot-up (except for looking at boot-up
>>>> screen and making notes)?
>>>>
>>>>          
>>> I think the output of 'rc-status' shows the services in the right order.
>>>
>>> 	Wonko
>>>
>>>
>>>        
>> It may be a coincidence but mine are alphabetical.  Also, mine only
>> shows the ones in the current runlevel, default at the moment.  It does
>> not list the ones in the boot runlevel.
>>      
> rc-status --all
>
>
> yoyo
>
>    

It shows all runlevels but they are still all in alphabetical order.

Dale

:-)  :-)



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

* Re: [gentoo-user] In which order services are started?
  2010-04-21 10:05   ` Dale
  2010-04-21 10:21     ` YoYo siska
@ 2010-04-21 19:47     ` Alex Schuster
  2010-04-21 20:04       ` Dale
  1 sibling, 1 reply; 13+ messages in thread
From: Alex Schuster @ 2010-04-21 19:47 UTC (permalink / raw
  To: gentoo-user

Dale writes:

> Alex Schuster wrote:
> > Jarry writes:
> >> Is there any way to find out in which order services are
> >> started during boot-up (except for looking at boot-up
> >> screen and making notes)?
> > 
> > I think the output of 'rc-status' shows the services in the right
> > order.

> It may be a coincidence but mine are alphabetical.

This may be a baselayout-2 thing then. Here the output looks like this:

wonko@weird ~ $ rc-status boot|cut -d " " -f 2
boot
hwclock
modules
lvm
device-mapper
dmcrypt
fsck
root
mtab
localmount
hostname
sysctl
bootmisc
procfs
termencoding
consolefont
keymaps
net.lo
urandom
swap

wonko@weird ~ $ rc-status default|cut -d " " -f 2
default
hdparm
net.eth0
rsyncd
metalog
hald
cupsd
nfs
nfsmount
netmount
gpm
xdm
alsasound
distccd
fcron
lm_sensors
mysql
ntpd
smartd
sshd
udev-postmount
vmware
local

	Wonko



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

* Re: [gentoo-user] In which order services are started?
  2010-04-21 19:47     ` Alex Schuster
@ 2010-04-21 20:04       ` Dale
  0 siblings, 0 replies; 13+ messages in thread
From: Dale @ 2010-04-21 20:04 UTC (permalink / raw
  To: gentoo-user

Alex Schuster wrote:
> Dale writes:
>
>    
>> Alex Schuster wrote:
>>      
>>> Jarry writes:
>>>        
>>>> Is there any way to find out in which order services are
>>>> started during boot-up (except for looking at boot-up
>>>> screen and making notes)?
>>>>          
>>> I think the output of 'rc-status' shows the services in the right
>>> order.
>>>        
>    
>> It may be a coincidence but mine are alphabetical.
>>      
> This may be a baselayout-2 thing then. Here the output looks like this:
>
> wonko@weird ~ $ rc-status boot|cut -d " " -f 2
> boot
> hwclock
> modules
> lvm
> device-mapper
> dmcrypt
> fsck
> root
> mtab
> localmount
> hostname
> sysctl
> bootmisc
> procfs
> termencoding
> consolefont
> keymaps
> net.lo
> urandom
> swap
>
> wonko@weird ~ $ rc-status default|cut -d " " -f 2
> default
> hdparm
> net.eth0
> rsyncd
> metalog
> hald
> cupsd
> nfs
> nfsmount
> netmount
> gpm
> xdm
> alsasound
> distccd
> fcron
> lm_sensors
> mysql
> ntpd
> smartd
> sshd
> udev-postmount
> vmware
> local
>
> 	Wonko
>
>
>    

I'm still on baselayout 1 here.  Your list does look different from mine 
tho.  Every one of mine is alphabetical.  Funny thing is, some geel most 
likely thought it would be neat to list them that way and went to the 
trouble of having it sort them for us.  Osrt of like the world file.  
Mine is alphabetical there as well.

Dale

:-)  :-)



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

end of thread, other threads:[~2010-04-21 20:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-20 17:47 [gentoo-user] In which order services are started? Jarry
2010-04-20 18:20 ` Bartosz Szatkowski
2010-04-20 19:28 ` Neil Bothwick
2010-04-21  0:01   ` Peter Humphrey
2010-04-21  8:04     ` Neil Bothwick
2010-04-21  7:50   ` Florian Philipp
2010-04-21  7:59     ` Neil Bothwick
2010-04-21  9:24 ` Alex Schuster
2010-04-21 10:05   ` Dale
2010-04-21 10:21     ` YoYo siska
2010-04-21 19:28       ` Dale
2010-04-21 19:47     ` Alex Schuster
2010-04-21 20:04       ` Dale

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