From owner-freebsd-questions Thu Sep 20 11: 6:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 9671037B405 for ; Thu, 20 Sep 2001 11:06:45 -0700 (PDT) Received: from hades.hell.gr (patr530-b027.otenet.gr [195.167.121.155]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f8KI6fS25412; Thu, 20 Sep 2001 21:06:41 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f8KHSUr23384; Thu, 20 Sep 2001 20:28:30 +0300 (EEST) (envelope-from charon@labs.gr) Date: Thu, 20 Sep 2001 20:28:30 +0300 From: Giorgos Keramidas To: S?ren Neigaard Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ftp server - again Message-ID: <20010920202829.B23202@hades.hell.gr> References: <4420765449.20010920145448@e-box.dk> <2021273499.20010920150316@e-box.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: <2021273499.20010920150316@e-box.dk> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: DB89 935F 85FC B995 91CA 4AEA 9F1D F31A C6B2 F5FC X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline S?ren Neigaard wrote: > Hey I found a file /etc/rc.conf where inetd was turned off :) So I > solved this by my self (maybe I'm lerning) You can either start ftpd from inetd, as you discovered, or standalone. Note that you can either start ftpd from inetd, or standalone, but not both. In fact, the manpage of ftpd suggests that you start ftpd as standalone, on busy sites. From ftpd(8) one can quote: -D With this option set, ftpd will detach and become a daemon, accepting connections on the FTP port and forking children pro- cesses to handle them. This is lower overhead than starting ftpd from inetd(8) and is thus useful on busy servers to reduce load. To start this automagically at boot time, you can put a custom script in /usr/local/etc/rc.d that starts ftpd. It has to understand `start' and `stop' /options, at the very least, so it could be something like: #!/bin/sh case $1 in start) /usr/libexec/ftpd -D && echo -n ' ftpd' ;; stop) /usr/bin/killall ftpd >/dev/null 2>&1 && echo -n 'ftpd' *) echo "usage: `basename $0` {start|stop}" 1>&2 exit 1 ;; esac You can always add more options to the line that calls /usr/libexec/ftpd, but you should really read and try to understand the manpage to select the options that you want to add there--if you haven't read it already, that is. - giorgos --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE7qic9nx3zGsay9fwRAsk9AKDMMhmUyEC4Xlr1vpIKZrfIchnfIwCgkL53 12TGjOXowBGLsOz1KrvpFRs= =EgQ1 -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message