You are not logged in.

#1 2005-09-01 16:03:13

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Daemons stuff ... backgrounded?

I never noticed that I can take a daemon in rc.conf and put in front of it an "@" to leave it "backgrounded", what is that about?, I could take any advantage doing that?


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#2 2005-09-01 17:14:44

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Daemons stuff ... backgrounded?

Meshuggin wrote:

I never noticed that I can take a daemon in rc.conf and put in front of it an "@" to leave it "backgrounded", what is that about?, I could take any advantage doing that?

backgrounded means it's run like "/usr/bin/someapp &" runs the process as a forked child - giving control immediately back to the caller.  That it, if I run "firefox &" from the prompt, firefox starts and I still have the prompt to type in and do things in.

Backgrounding the daemons does the same thing.  Because control is given back to the calling script sooner, the net result is that you are able to log in sooner.  I personally background almost everything.

Offline

#3 2005-09-01 17:36:21

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Re: Daemons stuff ... backgrounded?

thanxs phrakture, now I get it smile


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#4 2005-09-01 23:12:26

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Daemons stuff ... backgrounded?

it also means you'll have to be carefull about which you background. Example, backgrounding hotplug while loading network would give you problems because network relys on modules being loaded from hotplug. Unless you've explicity listed it in modules, but you get the point.

Offline

Board footer

Powered by FluxBB