Date: Fri, 17 Sep 2010 12:59:25 +0100 From: Daniel Bye <freebsd-questions@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: /usr/local/etc/rc.d/imapproxyd start Message-ID: <20100917115925.GA58299@catflap.slightlystrange.org> In-Reply-To: <AANLkTi=WZ2SAJ55aiiZSfigwDtz%2BoTbLqABEPgSQHV5h@mail.gmail.com> References: <AANLkTi=WZ2SAJ55aiiZSfigwDtz%2BoTbLqABEPgSQHV5h@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 17, 2010 at 01:02:03PM +0200, n dhert wrote: > There seems to be a problem with starting up the IMAP proxy server > imapproxyd: > # /usr/local/etc/rc.d/imapproxyd start > says > Starting imapproxyd. > but doesn't return the # prompt ... > # ps -jawx | grep imap > root 21490 21426 21490 64248 1 S+ 3 0:00.01 /bin/sh > /usr/local/etc/rc.d/imapproxyd start > root 21496 21490 21490 64218 1 S+ 3 0:00.01 /usr/local/sbin/in.imapprox= yd >=20 > I would expect the /bin/sh line to disappear and the # prompt to come bac= k. And so it should. I have just installed and tested it, and it works fine. The only way I can replicate the behaviour you report is if I misspell the name of the backend IMAP server - so start checking there. If it's not a typo, it is likely some other variety of DNS error. >=20 > If (from another terminal window) I do > # /usr/local/etc/rc.d/imapproxyd stop > is says > Stopping imapproxyd. > # (returns the prompt) >=20 > If the first window, it says: > Terminated > /usr/local/etc/rc.d/imapproxyd: WARNING: failed to start imapproxyd > ?? >=20 > 1. what is wrong here and how to correct it ? >=20 > 2. also, although I do have a user nobody and a group nobody in FreeBSD 8 > and the config file /usr/local/etc/imapproxyd.conf specifies (default > setting) > proc_username nobody > proc_groupname nobody > I wonder why the processes (ps -jawx) show root as the process owner ? It will need to start as root in order to bind all the resources it needs, before dropping privileges. Remember that only root can bind ports below 1024. It works fine here. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkyTWB0ACgkQixf5fBYiFmpgqQCgvytDyE0bgMWXlawFeeGH4rTo n4UAn3Twt6OYVnqs8rkANX2jwGRK37DT =zW4E -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100917115925.GA58299>