On 16-Oct-04, at 5:37 PM, Vincent Danen wrote: >>> Patching postfix is not my idea of a good time, either. I'd prefer >>> to >>> not mangle as much software as possible because it becomes a >>> maintenance nuisance. >> >> Sure, but you already have a maintenance problem, right now. Postfix >> doesn't run for you. > > Well, it does. Not the way that I exactly want, but I can start > postfix from stage 1 and have it work. Of course, if I do it this way > I have to "exec chpst -P postfix start &" which isn't elegant. > > I'm recompiling postfix now with the change to master.c you noted in > your next email and we'll see if I can make master run under > supervision and do the right thing. Ok, just patched master.c and it works properly supervised now. For the archives, and anyone else looking to run postfix 2.1.5 supervised: [vdanen@dionysus SPECS]$ bzcat ../SOURCES/postfix-2.1.5-avx-warnsetsid.patch.bz2 --- postfix-2.1.5/src/master/master.c.avx 2004-10-16 15:47:25.000000000 -0600 +++ postfix-2.1.5/src/master/master.c 2004-10-16 15:49:27.000000000 -0600 @@ -286,9 +286,10 @@ * Run in a separate process group, so that "postfix stop" can terminate * all MTA processes cleanly. Give up if we can't separate from our * parent process. We're not supposed to blow away the parent. + * Annvix: to run master supervised, we change this from being fatal to being a warning */ - if (setsid() == -1) - msg_fatal("unable to set session and process group ID: %m"); + if (setsid() < 0) + msg_warn("setsid failed: %m"); /* * Make some room for plumbing with file descriptors. XXX This breaks Thanks, Charlie! That seemed to work quite well. -- Annvix - Secure Linux Server: http://annvix.org/ *Please note gpg keyid FE6F2AFD has been replaced with keyid FEE30AD4* "lynx -source http://linsec.ca/vdanen.asc | gpg --import" {FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4}