From owner-freebsd-questions@FreeBSD.ORG Sat Jul 5 13:24:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3354637B401 for ; Sat, 5 Jul 2003 13:24:31 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 7B80443F3F for ; Sat, 5 Jul 2003 13:24:30 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 79646 invoked by uid 1001); 5 Jul 2003 20:27:39 -0000 Date: Sat, 5 Jul 2003 13:27:39 -0700 From: Joshua Oreman To: David Loszewski Message-ID: <20030705202739.GA79612@webserver.get-linux.org> References: <002101c34330$a573d970$65fefe0a@hades> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002101c34330$a573d970$65fefe0a@hades> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: staring imapd from command line? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2003 20:24:31 -0000 On Sat, Jul 05, 2003 at 04:04:25PM -0400 or thereabouts, David Loszewski wrote: > I don't use inetd for security reasons but am now trying to start imapd from the command line, if I do '/usr/local/libexec/imapd &' this happens: > > hermes# * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS LOGINDISABLED] hermes.bsdadmins.net IMAP4rev1 2003.337 at Sat, 5 Jul 2003 16:07:17 -0500 (EST) > > [1] + Suspended (tty input) /usr/local/libexec/imapd > > How do I make this work? Make an /etc/inetd.conf file with one line to start imapd. Sorry, you have to. Of course, you could use an inetd replacement, like xinetd (from ports). Another solution would be to install tcpserver (might be part of daemontools) and use that for a one-program inetd. Here's why: Inetd listens on port 143 (for example). When it gets a connection, it starts /usr/local/libexec/imapd with its stdout going to the network and its stdin coming from the network. So if you start imapd from the command line, it expects its stdin to be reading the network. Actually, since inetd wasn't there to redirect it, it's reading from (and writing to) your terminal. So: use inetd, xinetd, or tcpserver. -- Josh > > Dave > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"