Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 15:32:22 -0500
From:      Andrew Hesford <ajh3@chmod.ath.cx>
To:        kam@salsolutions.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Does it matter?
Message-ID:  <20010404153222.A17093@cec.wustl.edu>
In-Reply-To: <F47KLpgTFur2iz2Mb1s00000c8b@hotmail.com>; from netalchemist@hotmail.com on Wed, Apr 04, 2001 at 04:31:54PM -0000
References:  <F47KLpgTFur2iz2Mb1s00000c8b@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 04, 2001 at 04:31:54PM -0000, Kam Salisbury wrote:
> In the continuing saga of my installing FreeBSD on my box for a home network 
> server...
> 
> I noticed that Samba (smbd and nmbd) are not being managed by inetd. Is this 
> a problem? Does it matter that they start and move to the background (daemon 
> process) via /usr/local/etc/rc.d shell script?
> 
> Kam.

As it were, I use inetd to spawn Samba and Apache. The reason is quite
simple... while maybe a bit more inefficient (as another reply
suggests), I simply do not get enough http hits or SMB traffic to
justify keeping a daemon running full-time. Occassionally my brother
will hijack my MP3 directory from Windows, and I use Apache to share 
files on IRC (my firewall prevents DCC sending from my machine), but
for the most part, traffic is minimal. 

This way, I keep my memory and processor usage low when not in use, and
pay a small tax when I want to use Apache and Samba. This is clearly a
matter of preference.

OpenSSH, on the other hand, is not started from inetd. This is because I
use SSH on my box all the time, and it is pointed out in the docs that
each time an sshd process is spawned, it needs to create a session key,
which takes time. Therefore, I leave sshd running all the time, so that
I can SSH to my box (as I am right now) without penalty.
--
Andrew Hesford
ajh3@chmod.ath.cx

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?20010404153222.A17093>