From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1149 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: qpsmtpd-forkserver on Mac OS X Date: Wed, 7 Jun 2006 11:20:29 +0200 Message-ID: <20060607092029.GA31722@skarnet.org> References: <20060606155758.32069.qmail@3d2f285f0534b6.315fe32.mid.smarden.org> <75C12523-F011-4682-B172-728336E1B739@seespotcode.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149672032 17006 80.91.229.2 (7 Jun 2006 09:20:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jun 2006 09:20:32 +0000 (UTC) Original-X-From: supervision-return-1385-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jun 07 11:20:29 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FnuCu-00080p-Vc for gcsg-supervision@gmane.org; Wed, 07 Jun 2006 11:20:09 +0200 Original-Received: (qmail 32020 invoked by uid 76); 7 Jun 2006 09:20:29 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 32014 invoked by uid 1000); 7 Jun 2006 09:20:29 -0000 Mail-Followup-To: supervision@list.skarnet.org Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <75C12523-F011-4682-B172-728336E1B739@seespotcode.net> User-Agent: Mutt/1.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1149 Archived-At: > The server runs correctly when launched by the run script > (sudo ./run without the runit service running), but not when > controlled by runit. :/ This is not the same. When you do "sudo ./run", the run script is executed with most of your user environment (open fds, environment variables and whatnot), modified in some way by the sudo configuration. When the run script is started by runit, it is run with a "boot" environment: init spawns runsvdir, which spawns runsv, which spawns your service. There's something in your service that works in a user environment and doesn't in a boot environment. I don't know qpsmtpd at all, but here are some random points: - Does your server work when stdin isn't a terminal? If not, why? - (depending on your boot configuration) Does your server work when stdin is closed? - What do kernel limits look like in your boot environment? Are there ulimit commands in log in scripts that make them less strict in user environments? HTH, -- Laurent