Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init scrips always start a service?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Mon Oct 12, 2009 4:38 pm    Post subject: init scrips always start a service? Reply with quote

Quote:
The boot runlevel starts all system-necessary services which all other runlevels use.



What is a 'service'? A process which keeps on running while the system is on? Doesn't appear so.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Oct 12, 2009 5:05 pm    Post subject: Reply with quote

This might help to understand how init works.

On some linux flavors id:3:initdefault: will point at the /etc/rc3.d folder. On Gentoo it points at the /etc/runlevels/default folder.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Tue Oct 13, 2009 6:07 am    Post subject: Reply with quote

I quoted that line cause service was first referred there.

My question is...if suppose a service has been started, will it continue to work as long as the system is on? (unless under some sorts disaster, or you manually shut it down etc...).
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Tue Oct 13, 2009 6:25 am    Post subject: Reply with quote

There are 2 aspects.

For one, boot runlevels services are executed before the other runlevels (read: default runlevel) get started.

And yes, as long as no disaster happens, the service continues to run. Running does not necessary mean that that is has to use CPU cycles, but it is available to receive commands (i.e apache webserver, postfix mailserver). There are other services that do not really run, but need to be started, to set the system into a defined start (udev, localmount, net.X to name a few).

But there is also the possibility that some server might crash, due to a software error. In that case I will stop working.
And if you change the binaries running that service, it is not guaranteed, that it will continue to run. I might not even crash eve

cheers
V.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Wed Oct 14, 2009 4:30 am    Post subject: Reply with quote

Hummm...as I expected.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum