From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1147 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: qpsmtpd-forkserver on Mac OS X Date: Tue, 6 Jun 2006 15:57:58 +0000 Message-ID: <20060606155758.32069.qmail@3d2f285f0534b6.315fe32.mid.smarden.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149609466 5422 80.91.229.2 (6 Jun 2006 15:57:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jun 2006 15:57:46 +0000 (UTC) Original-X-From: supervision-return-1383-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jun 06 17:57:44 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 1Fndw5-0001Ok-Ci for gcsg-supervision@gmane.org; Tue, 06 Jun 2006 17:57:41 +0200 Original-Received: (qmail 16284 invoked by uid 76); 6 Jun 2006 15:57:59 -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 16279 invoked from network); 6 Jun 2006 15:57:59 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1147 Archived-At: On Mon, Jun 05, 2006 at 05:58:17PM +0900, Michael Glaesemann wrote: > I'm trying to get qpsmtpd-forkserver[1] to start automatically on > server restart. > > Mac OS X 10.4.6 (Intel Mac Mini) > runit-1.5.1 This may be another problem, independent from what you report: AFAIK the poll() implementation of Mac OSX 10.4/Intel is broken, and doesn't work for named pipes. runit (or better daemontools' iopause()) has an alternative implementation using select(), but this isn't chosen while building as poll() is available, but broken. > I can run the qpstmpd-forkserver from the command line using > > sudo /usr/local/qpsmtpd/qpsmtpd-forkserver --detach --user www --port 25 I guess you get a prompt back after this command because of the --detach option. > The qpsmtpd wiki gives instructions[2] on how to configure qpsmtpd- > forkserver with runit. Here's /var/service/qpsmtpd/run > > $ cat /var/service/qpsmtpd/run > #!/bin/bash > unset PERL_UNICODE > /usr/local/qpsmtpd/qpsmtpd-forkserver --detach --user www --port 25 > $ The service daemon must not background (or 'daemonize') when supervised by runit, but must run in the foreground. Try to remove the --detach option. > When org.smarden.runit.plist is loaded (either manually using > launchctl or automatically on server restart), qsmtpd-forkserver > doesn't appear to work. However, something is definitely running on > port 25: Maybe you didn't stop the daemon you started before from the command line, and which detached from the terminal and process tree, and now still listens on the port. > I don't see anything in /var/log/system.log (where launchd problems > are logged) or /var/log/mail.log (the qpsmtpd log). When using > launchd/runit, nothing is logged to /var/log/mail.log at all. (When > run from the command line, mail.log contains information about > connections to the smtp server.) There should be no difference, I don't know why you get no logs here. HTH, Gerrit.