Re: Kernel Edgeplay
Paolo <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <20090103085720.GA7218@localhost> |
On Wed, Dec 31, 2008 at 03:58:54PM -0700, Chris Babcock wrote: ... > Each of the daemon children grabs data off an input pipe, does a merge > with a template supplied at creation, runs an SMTP conversation via a > telnet process to the local mail server and lets the parent know when why not using a 1-shot sendmail(8) process or SMTP session via eg socket(1)? ... > The obvious problem here is that every child spawned off the main loop > is using 6 or 9 processes at any time. When you add in the processes you could use just 1 'killer' process, which checks eg /var/run/my-smtp/*.pid stat(1)ing such *.pid and killing off those that timed out. > do want to know if there's a better idiom for watching a process that > I'm missing coming at the problem like a shell script. Also, if there's check eg http://cr.yp.to/daemontools.html for some idea. HTH -- paolo ------------------------------------------------------------------------------