View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Mon Oct 12, 2009 4:38 pm Post subject: init scrips always start a service? |
|
|
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 |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Mon Oct 12, 2009 5:05 pm Post subject: |
|
|
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 |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Tue Oct 13, 2009 6:07 am Post subject: |
|
|
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 |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Tue Oct 13, 2009 6:25 am Post subject: |
|
|
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 |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Wed Oct 14, 2009 4:30 am Post subject: |
|
|
Hummm...as I expected.
Thanks. |
|
Back to top |
|
|
|