From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1075 Path: news.gmane.org!not-for-mail From: Vincent Danen Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: postfix and svlogd ? Date: Thu, 9 Mar 2006 13:53:55 -0700 Organization: Annvix Message-ID: <20060309205355.GB490@annvix.org> References: <20060301232321.GA16811@dusk.harfang.homelinux.org> <20060307184236.GA13099@dusk.harfang.homelinux.org> <20060309142351.GA14571@dusk.harfang.homelinux.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AAiVQQES42Kk67ff" X-Trace: sea.gmane.org 1141937692 542 80.91.229.2 (9 Mar 2006 20:54:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2006 20:54:52 +0000 (UTC) Original-X-From: supervision-return-1311-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Mar 09 21:54:45 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 1FHS9X-0002Zv-OZ for gcsg-supervision@gmane.org; Thu, 09 Mar 2006 21:54:31 +0100 Original-Received: (qmail 25683 invoked by uid 76); 9 Mar 2006 20:54:53 -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 25676 invoked from network); 9 Mar 2006 20:54:52 -0000 Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060309142351.GA14571@dusk.harfang.homelinux.org> X-Mailer: Mutt 1.5.x/OS X 10.4.x X-PGP-Key: http://linsec.ca/vdanen.asc X-URL: http://annvix.org/ User-Agent: Mutt/1.5.10i X-SA-Exim-Connect-IP: 68.149.37.7 X-SA-Exim-Mail-From: vdanen@annvix.org X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on hades.annvix.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-SA-Exim-Version: 4.2 (built Wed, 01 Feb 2006 18:29:36 -0700) X-SA-Exim-Scanned: Yes (on hades.annvix.org) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1075 Archived-At: --AAiVQQES42Kk67ff Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Gilles [2006-03-09 15:23:51 +0100]: > 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"? >=20 > 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: >=20 > ---CUT--- > #!/bin/sh > exec 1>&2 >=20 > daemon_directory=3D/usr/lib/postfix \ > command_directory=3D/usr/sbin \ > config_directory=3D/etc/postfix \ > queue_directory=3D/var/spool/postfix \ > mail_owner=3Dpostfix \ > setgid_group=3Dpostdrop \ > /etc/postfix/postfix-script check || exit 1 >=20 > exec /usr/lib/postfix/master > ---CUT--- >=20 > [No mention of any caveat.] > So actually, is this sufficient or not to run postfix under > supervision??? Looks like it should be, but might be overkill as well. What we use with Annvix (and which works for supervision, without patches): [vdanen@build ~]$ cat svn/packages/releases/1.2-RELEASE/postfix/SOURCES/postfix.run=20 #!/bin/sh # this was originally posted at http://mandree.home.pages.de/postfix/daemon= tools.html # but doesn't seem to be there anymore... thanks google! set -e PATH=3D"/sbin:/usr/sbin:/bin:/usr/bin" # this runs postfix supervised command_directory=3D`postconf -h command_directory` daemon_directory=3D`$command_directory/postconf -h daemon_directory` # kill postfix if running to ensure we run supervised $daemon_directory/master -t || $command_directory/postfix stop >/dev/null 2= >&1 # make consistency check $command_directory/postfix check >/dev/console 2>&1 exec $daemon_directory/master >/dev/null 2>&1 --=20 Annvix - Secure Linux Server: http://annvix.org/ "lynx -source http://linsec.ca/vdanen.asc | gpg --import" {FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4} Wasting time like it was free... --AAiVQQES42Kk67ff Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEEJXjLrxeMv7jCtQRAnOtAJ9K8LyzYGHsgdrRc44eF6PfTodL3gCfd+Dq wOAunEBjqnHFB95CHfOz1uA= =WP/b -----END PGP SIGNATURE----- --AAiVQQES42Kk67ff--