[tpop3d-discuss] tpop3d 1.4.2 : feature requests.

Ben Schumacher ben at blahr.com
Fri, 9 Aug 2002 08:15:56 -0600 (MDT)


On Thu, 8 Aug 2002, Dave Baker wrote:
 [...snip...]
> As it is, the "no-detach" and -d on the command line do not behave
> identically when I spawn tpop3d under daemontools.  specifically, if I
> just use no-detach then I end up with nothing going through my daemontools
> log processor.  Very odd.

Is the 'run' script you're using with daemontools based on a bourne shell?
If so you, can redirect STDERR to STDOUT for every child process that is a
child of that one fairly trivially.

Try something like this:

#!/bin/sh
exec 2>&1
/usr/local/sbin/tpop3d -d

That should have the desired effect.

Cheers,

bs.