You are not logged in.

#1 2006-10-01 12:36:03

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

rc.conf DAEMONS '@' question

In rc.conf it says to put a @ infront of a daemon to load it in the background.

What exactly does this mean and which daemons should I consider loading up in the background?

Cheers.


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

#2 2006-10-01 12:43:07

detto
Member
Registered: 2006-01-23
Posts: 510

Re: rc.conf DAEMONS '@' question

Mh, now as you mention it ... lol
Am curious now too, maybe some could speed up boot process a bit when backgrounding ? Well boot is fast enough anyway, but this options must have a reason to exist roll

cheers,
detto

Offline

#3 2006-10-01 12:54:44

Kindred
Member
From: Australia
Registered: 2006-03-25
Posts: 27

Re: rc.conf DAEMONS '@' question

It means the next daemon listed will start without waiting for the prefixed daemon to finish.. uh,  e.g my daemons line:

DAEMONS=(syslog-ng network dbus hal portmap @fam @shorewall @samba @netfs @crond @alsa @mpd)

Basically, shorewall will start before fam has finished loading, and so on.  You have to use a little common sense to figure out what needs to be running before other things can - like portmap must be running before fam I believe.  I'm not sure my setup is optimal, I could perhaps background one or two more, but i'm not all that concerned right now.

Anyway it's worth playing with and this setup saves me maybe 10-20 secs in boot time at a guess.

Offline

#4 2006-10-01 13:11:46

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

Re: rc.conf DAEMONS '@' question

Ah, ok. So when ntp takes forever to synchronise with the server I can just add '@' to it and load the other things without waiting for it to finish.

So what your saying is the @shorewall will start without waiting for @fam to finish, but @fam still has to wait for portmap because portmap is not prefixed with the '@'?


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

#5 2006-10-01 13:14:23

Kindred
Member
From: Australia
Registered: 2006-03-25
Posts: 27

Re: rc.conf DAEMONS '@' question

Yes, exactly.  smile

Offline

#6 2006-10-01 14:58:27

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: rc.conf DAEMONS '@' question

DAEMONS=(syslog-ng network netfs @sshd @crond @ntpd @alsa)

Mine, for reference...

Offline

#7 2006-10-01 18:14:07

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

Re: rc.conf DAEMONS '@' question

Cool. This is what mine now looks like.

DAEMONS=(syslog-ng network dbus hal portmap @fam @firestarter @ntpdate @netfs @crond alsa)

Any advice on how to improve it would be cool. smile


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

#8 2006-10-01 19:25:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: rc.conf DAEMONS '@' question

archuser wrote:

Cool. This is what mine now looks like.

DAEMONS=(syslog-ng network dbus hal portmap @fam @firestarter @ntpdate @netfs @crond alsa)

Any advice on how to improve it would be cool. smile

You can background alsa.

Offline

#9 2006-10-01 22:45:50

karsten
Member
Registered: 2006-07-14
Posts: 261

Re: rc.conf DAEMONS '@' question

i think you can background dbus and/or hal i don't remember.

Offline

#10 2006-10-02 08:00:50

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: rc.conf DAEMONS '@' question

hal automatically start dbus.

This is one the first line in /etc/rc.d/hal

       #Check for running dbus, start when not running
        ck_daemon dbus && /etc/rc.d/dbus start

So you can delete dbus of your DAEMONS wink

Offline

#11 2006-10-02 17:52:55

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

Re: rc.conf DAEMONS '@' question

Cheers guys. I've deleted dbus and backgrounded alsa. My system startup is tons better now. smile


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

#12 2006-10-02 18:18:33

detto
Member
Registered: 2006-01-23
Posts: 510

Re: rc.conf DAEMONS '@' question

Here's mine now for reference:

DAEMONS=(syslog-ng network @hal @fam @samba @avahi-daemon @alsa gdm)

It works, i guess. But am not sure.
Where can i see which daemons got started / are running :?:

Offline

#13 2006-10-02 18:48:35

Kermit
Member
From: Chorzów, Poland
Registered: 2006-03-25
Posts: 78

Re: rc.conf DAEMONS '@' question

@detto -> Type pstree in console.

Kermit.

Offline

#14 2006-10-02 20:18:30

detto
Member
Registered: 2006-01-23
Posts: 510

Re: rc.conf DAEMONS '@' question

Thank you kermit!!
Everything checked. My Daemons set up works smile

Offline

#15 2006-10-02 21:43:33

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: rc.conf DAEMONS '@' question

DAEMONS=(syslog-ng !pcmcia @acpid network @ntpd netfs @crond @lisa !httpd @hal !sshd !mysqld @laptop-mode @gensplash kdm)

This is my array. Btw, nice to see the dbus dep has been included in the hal rc script smile

Offline

#16 2006-10-02 22:08:54

detto
Member
Registered: 2006-01-23
Posts: 510

Re: rc.conf DAEMONS '@' question

So is acpid smile
You don't need to list it there smile

Offline

#17 2006-10-03 08:45:54

hehejo_
Member
From: Germany
Registered: 2005-10-08
Posts: 47
Website

Re: rc.conf DAEMONS '@' question

DAEMONS=(syslog-ng klogd @network portmap @laptop_mode !fam @hal !acpid @cpudyn @uptimed !pcmcia !hotplug)

may someone look on my list? I'm not shure if everything is ok.
It runs well - but it can always be improved.

Offline

#18 2006-10-03 10:53:59

detto
Member
Registered: 2006-01-23
Posts: 510

Re: rc.conf DAEMONS '@' question

Looks fine to me.
You need portmap? I only need this for fam which you have disabled. Therefore disabling portmap too would make sense smile
Well, if you need it i would say its good as it is now.

cheers,
detto

Offline

#19 2006-10-03 12:42:38

hehejo_
Member
From: Germany
Registered: 2005-10-08
Posts: 47
Website

Re: rc.conf DAEMONS '@' question

Uh, I don't know if I need portmap.
It's in there since first install..

I remove it and look what happens..

Offline

#20 2006-10-03 13:21:08

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: rc.conf DAEMONS '@' question

kdm/kdm shoud be started by inittab instead of rc.conf imo. It's a more elegant and "correct" way.

If you are not mounting any network shares at boot (like remote host etc. and are using dhcpcd then you can save quite a bit of time by doing network in the background.
Just my 2 cents (not aimed at anyone in special)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#21 2006-10-03 20:55:19

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: rc.conf DAEMONS '@' question

DAEMONS=(syslog-ng !hotplug !pcmcia @network @fam crond)

Aside from the removal of netfs and the addition of fam and of course the added @'s its pretty much default.  Its open to critique of course.

Offline

#22 2006-10-03 23:49:05

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: rc.conf DAEMONS '@' question

yankees26 wrote:
DAEMONS=(syslog-ng !hotplug !pcmcia @network @fam crond)

Aside from the removal of netfs and the addition of fam and of course the added @'s its pretty much default.  Its open to critique of course.

Just an esthetical comment. You can remove the:
!hotplug !pcmcia
because these daemons don't exist anymore (they were obsoleted by udev).  It will unclutter the DAEMONS lines (intead of having them commented out)..

Offline

#23 2006-10-04 00:19:54

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: rc.conf DAEMONS '@' question

Ah, will do.

Offline

#24 2006-10-04 01:31:35

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: rc.conf DAEMONS '@' question

DAEMONS=(syslog-ng cpufreqd acpid ifplugd network @named @crond !gpm @sshd !samba hplip cups @alsa portmap @fam dbus hal bluetooth gdm)

---

What do you guys think ? Is this one ok ?


Quis custodiet ipsos custodiet?

Offline

#25 2006-10-04 07:05:29

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: rc.conf DAEMONS '@' question

excuse my ignorance but i see most of u have fam added to the daemons. i have it installed but not added to daemons. is there any reason i should add it too?
just for the record mine is

DAEMONS=(syslog-ng network hal @alsa @netfs @crond)

There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

Board footer

Powered by FluxBB