You are not logged in.

#1 2007-09-17 15:16:11

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

question about some start-up daemons

In the "networkmanager" section of the wiki, it kinda tells me that you don't need to add portmap to the daemons list because it is already started by fam. Is this true or am I crazy?

Note that if you use fam (File Alteration Monitor), it needs to appear after networkmanager in the DAEMONS list. The same also applies to portmap if specified (automatically included by fam).


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#2 2007-09-17 15:21:50

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: question about some start-up daemons

It's true.  The same thing is true for dbus - it is enough to put hal in the daemon array, hal automatically starts dbus when it's started.

Offline

#3 2007-09-17 15:27:40

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: question about some start-up daemons

That is REALLY good to know. If anyone else knows something like this, please post it here.


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#4 2007-09-17 15:38:21

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: question about some start-up daemons

That's true... fam relies on portmap and will therefore automatically check for and start the portmap service.  You need only specify fam in the DAEMONS array.


thayer williams ~ thayerwilliams.ca

Offline

#5 2007-09-17 15:46:15

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: question about some start-up daemons

Hah... guess I should've refreshed before posting the obviously belated response above.  Just a quick tip though, you can easily see if a startup daemon checks for the presence of another by having a peek at the daemon script in /etc/rc.d (this is where ALL daemon scripts reside).  For example, if we take a peek at /etc/rc.d/hal we see this near the top:

case "$1" in
    start)
        #Check for running dbus, start when not running
        ck_daemon dbus && /etc/rc.d/dbus start
    if [ -x /etc/rc.d/acpid ]; then
        ck_daemon acpid && /etc/rc.d/acpid start
    fi
        stat_busy "Starting Hardware Abstraction Layer"

Although not every script will be so well-documented with comments, you can at least see that the script is first starting a separate service, in this case the dbus daemon: "ck_daemon dbus && /etc/rc.d/dbus start"

By examining the daemon scripts, you can easily clean up your DAEMONS array and also eliminate redundant messages in the console (e.g. Daemon failed to start because its already running).


thayer williams ~ thayerwilliams.ca

Offline

#6 2007-09-17 15:50:04

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

Re: question about some start-up daemons

Nice info!


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

Board footer

Powered by FluxBB