Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2002 04:26:06 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Differences between FreeBSD and Mandrake
Message-ID:  <20020108032605.GA1387@raggedclown.net>
In-Reply-To: <200201080207.g0827AF51245@grumpy.dyndns.org>
References:  <20020107170358.B561@beastie.paeps.cx> <200201080207.g0827AF51245@grumpy.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 07, 2002 at 08:07:10PM -0600, David Kelly wrote:
> Philip Paeps writes:
> > On Mon, Jan 07, 2002 at 06:33:04AM -0500, Allen May wrote:
> >  
> > > In Mandrake, the current running DAEMON's are in the init.d directory.. 
> > > were are they in FreeBSD? I don't have an /etc/init.d directory.
> > 
> > FreeBSD does not use the SysV style init stuff, instead we have a BSD-style
> > rc(8) system.  To see which daemons are currently running, you could use ps(1)
> > or a similar tool.  Generally, I also find that the contents of /var/run are
> > interesting...
> 
> I do not believe Allen's statement is completely correct. I cut my Unix
> teeth on Irix and early Linux but have been away from SysV for a few
> years. So the /etc/init.d/ directory (isn't it /etc/rc.d/ ??) is where
> you put links to startup and shutdown scripts (some launch daemons) but
> is not a listing of the running daemons.

What and where in Linux depends on it's conformity to LHS (or is LSH)..
System V wise:
        init.d ---> rc.d (symlink)
        rc.d contains all the System V type start/stop scripts
             plus a directory for each run-level rc3.d, rc5.d etc.
        in rc.d/rcX.d are symlinks of the type ../program for
        each thing to be started/stopped according to runlevel.
        There are two links for each program, one starts with S
        and one with K. The S is for start the K is for kill.

Ergo, I suppose you can see a list of what may or may not be running in
any run-level, say run-level 3, by looking at an ls listing of
rc.d/rc3.d.
Except of course this means nothing. Since some of the programs may not
be daemons (just things that run, do something, then exit), or may only
run conditionally under other circumstances (environment settings for
example). And then again you have /etc/rc.config.d .. but enough !

In short you see what is running by using "ps" on either system.
Flags used depends on O/S (as explained below), although I believe 
Linux versions of "ps" understand the BSD options as well.

> 
> "ps -aux" will result in a list of everything running on FreeBSD. Think
> its "ps -ef" on Linux (varied on flavor of Linux back when I got tired
> of Linux) and know its "ps -ef" on Irix.
> 
> But then again "top" is a pretty good quick look at what is running.
-- 
Regards
Cliff



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020108032605.GA1387>