From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1073 Path: news.gmane.org!not-for-mail From: Gilles Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: postfix and svlogd ? Date: Thu, 9 Mar 2006 15:23:51 +0100 Message-ID: <20060309142351.GA14571@dusk.harfang.homelinux.org> References: <20060301232321.GA16811@dusk.harfang.homelinux.org> <20060307184236.GA13099@dusk.harfang.homelinux.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141914260 31901 80.91.229.2 (9 Mar 2006 14:24:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2006 14:24:20 +0000 (UTC) Original-X-From: supervision-return-1309-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Mar 09 15:24:15 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 1FHM3Z-0007jN-CW for gcsg-supervision@gmane.org; Thu, 09 Mar 2006 15:23:58 +0100 Original-Received: (qmail 14368 invoked by uid 76); 9 Mar 2006 14:24:17 -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 14362 invoked from network); 9 Mar 2006 14:24:17 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060307184236.GA13099@dusk.harfang.homelinux.org> X-Operating-System: Tiny Tux X-PGP-Key-Fingerprint: 53B9 972E C2E6 B93C BEAD 7092 09E6 AF46 51D0 5641 User-Agent: Mutt/1.5.11 X-SA-Exim-Connect-IP: 192.168.107.30 X-SA-Exim-Mail-From: gilles@harfang.homelinux.org X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on dawn.harfang.homelinux.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on localhost) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1073 Archived-At: Hi. > Doesn't anyone use postfix with runit? > > Postfix uses syslog, but is there a way to make it work with > svlogd? > Or will I have to install socklog and set it up as a UNIX > log service? > I'm pasting here yet another reply (sent personally) to that post: > I do--I use postfix with runit--and there is a patch [1] > that you can't apply cleanly [as it is in the original], > yet is the one to go. > > See here below what the patch misses ... the stuff > between "start patch manuale" and "fine patch manuale." > > Of course you need then to *stop/restart* Postfix > [indirectly] via runit. > > You can replace completely your original "start)" with the > new "start|start-foreground)" case here below ... it's in: > > postfix-2.xxx/conf/postfix-script > > in which 2.xxx is your Postfix version (I am using > postfix-2.3-2006zzzz) > > and it stays stable/invariant (... so far) > > Look for: > > ** snippet begin: > > stop_msg) > echo "Stop postfix" > ;; > > start|start-foreground) > $daemon_directory/master -t 2>/dev/null || { > $FATAL the Postfix mail system is already running > exit 1 > } > if [ -f $queue_directory/quick-start ] > then > rm -f $queue_directory/quick-start > else > $config_directory/postfix-script check-fatal || { > $FATAL Postfix integrity check failed! > exit 1 > } > # Foreground this so it can be stopped. All > # inodes are cached. > $config_directory/postfix-script check-warn > fi > # -- roy: start patch manuale > if [ $1 = "start-foreground" ] ; then > $INFO "starting the Postfix mail sys. (foreground)" > exec $daemon_directory/master > else > $INFO starting the Postfix mail system > $daemon_directory/master & > fi > # -- roy: fine patch manuale > ;; > > drain) > ... > > ** snippet end. > > > Cheers, > > /Roy Lanek (West Sumatra) > > > [1] search (google) for: postfix-20031026-foreground.diff But am I seriously mistaken, or is it again some info about how to run postfix supervised? And not about how to grab postfix log messages so as to be able to use "svlogd"? The fact that several people seem to imply that it isn't trivial (such as the need for a patch to be applied, as stated above) to run postfix under runit make me wonder about the example script provided by Gerrit Pape, copied here below: ---CUT--- #!/bin/sh exec 1>&2 daemon_directory=/usr/lib/postfix \ command_directory=/usr/sbin \ config_directory=/etc/postfix \ queue_directory=/var/spool/postfix \ mail_owner=postfix \ setgid_group=postdrop \ /etc/postfix/postfix-script check || exit 1 exec /usr/lib/postfix/master ---CUT--- [No mention of any caveat.] So actually, is this sufficient or not to run postfix under supervision??? Thanks for your advice, Gilles