-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marko Lerota wrote: > Matthew Yette <[EMAIL PROTECTED]> writes: > >> I've looked on Google for a while now - I haven't been able to >> find directions or references to having spamd monitored under >> daemontools. Specifically where I would find how to create the >> supervise directory for spamd. >> >> Has anyone successfully done this? >> >> Matt > > > mkdir /var/spamd-service cd /var/spamd-service > > edit /service/spamd-service/run > > --- run --- #!/bin/sh exec 2>&1 /usr/local/bin/spamd -c -d -v -u > vpopmail \ -r /var/run/spamd/spamd --- run --- > > chmod +x run mkdir log cd log > > edit run > > --- run --- #!/bin/sh exec setuidgid qmaill \ multilog \ t \ > \${MAXFILESIZE+"s\$MAXFILESIZE"} \ \${MAXLOGFILES+"n\$MAXLOGFILES"} > \ \${PROCESSOR+"!\$PROCESSOR"} \ ./main --- run ---- > > mkdir main chown qmaill:qmail main chmod +s main chmod +x run > > ln -s /var/spamd-service /service > > And that's it, of course /service is the directory created by > daemontools > >
Skip the -d for daemonize makes damontools think that the spamd process has died and tries to restart it. All you'll get is a log full of binding errors.... /Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDMrB2Y+EUV64Bqn0RAticAJ946ETXdhhZIZvi8t1LURoVVG3S2QCfYB66 a9O4DAttQ5SZANM9JUn+o6I= =m4qM -----END PGP SIGNATURE-----