You are not logged in.

#1 2011-07-07 16:09:41

ariszlo
Member
From: Szeged, Hungary
Registered: 2004-04-07
Posts: 9
Website

daemons order & background

What is the best order to list the following common daemons?

DAEMONS=(hwclock syslog-ng network netfs crond alsa cups dbus fuse)

Also, which of them should be started in the background?

Offline

#2 2011-07-07 16:12:07

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: daemons order & background

I put everything in background except syslog. AS for order, it depends. if one daemon depends on another to start before it, you should list them as such otherwise order doesnt matter


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-07-07 17:13:10

ariszlo
Member
From: Szeged, Hungary
Registered: 2004-04-07
Posts: 9
Website

Re: daemons order & background

Thanks. Do any of the above daemons depend on each other?

Offline

#4 2011-07-07 17:14:27

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: daemons order & background

you might want to start dbus before netfs alsa and cups. I am not sure if they directly depend on dbus, but its better to have dbus up and running before hand.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-07-07 18:08:40

aliasbody
Member
From: Portugal
Registered: 2010-12-16
Posts: 157
Website

Re: daemons order & background

Just one stupid question :S..
Why running fuse in the modules ? It isn't better to run it on the Modules :S ? (If not so sorry )

PS : you can use this organization :

DAEMONS=(hwclock syslog-ng dbus fuse @network @netfs crond @alsa @cups)

if it was me maybe I organize like that :

MODULES = (fuse usblp)
DAEMONS=(syslog-ng dbus @networkmanager @netfs @crond @alsa @cups)

If I made some mistakes tell me ! ^^

Offline

#6 2011-07-07 23:28:56

ariszlo
Member
From: Szeged, Hungary
Registered: 2004-04-07
Posts: 9
Website

Re: daemons order & background

Thanks for the replies. smile

Just one more daemon I forgot to include: should samba start before cups or the other way round?

aliasbody wrote:

Why running fuse in the modules ? It isn't better to run it on the Modules :S ?

You are right. That was a mistake.

Offline

#7 2011-07-08 08:53:12

chemicalfan
Member
From: United Kingdom
Registered: 2011-05-25
Posts: 58

Re: daemons order & background

I'd guess so - do you print via the samba share?

Offline

#8 2011-07-08 09:58:11

aliasbody
Member
From: Portugal
Registered: 2010-12-16
Posts: 157
Website

Re: daemons order & background

You should run samba after cups since I don't know the influence of running the printer driver after samba ^^

So you should have something like this :
DAEMONS=(syslog-ng dbus @networkmanager @netfs @crond @alsa @cups @samba)

Offline

#9 2011-07-08 10:52:10

lukaszan
Member
Registered: 2011-05-05
Posts: 117

Re: daemons order & background

aliasbody wrote:

You should run samba after cups since I don't know the influence of running the printer driver after samba ^^

So you should have something like this :
DAEMONS=(syslog-ng dbus @networkmanager @netfs @crond @alsa @cups @samba)

Correct me if I'm wrong, but in this case (for example) if you start both cups and samba in background, then you don't actually have any guarantee that cups will start before samba.

If you have to start daemons in order, than you must start them in foreground (or fiddle with scripts and add delays etc).

Offline

#10 2011-07-08 11:21:16

aliasbody
Member
From: Portugal
Registered: 2010-12-16
Posts: 157
Website

Re: daemons order & background

You're right... the background DAEMONS do not wait to the last one in the same order to finish (as the Wiki say) so to be sure that they start at the good time you should remove the @ on cups and samba like this :
DAEMONS=(syslog-ng dbus @networkmanager @netfs @crond @alsa cups samba)

I have the bad habit of putting everything in background because I don't really need (in my DAEMONS) a specific order...

The only thing that I normally do not make in Background is the Display Manager (like GDM), since I put them in last and syslog-ng (like "Inxsible" ^^) for others daemons that I don't really need every time, like httpd and mysqld, I usually start them manually when I need them ^^

Offline

Board footer

Powered by FluxBB