Here's what I use.  crashmail notifies notify-on-crash (-m) when any child
process exits unexpectedly (-a) and adds the hostname to the subject line
(-o).  I set the from address with sendmail so it is consistent across all
of my environments and makes it through my mail provider.

[eventlistener:crashmail]
command=/usr/bin/crashmail -o hostname -a -m [email protected] -s
'/usr/sbin/sendmail -t -i -f [email protected]' ; the program
(relative uses PATH, can take args)
events=PROCESS_STATE            ; event notif. types to subscribe to (req'd)
environment=SUPERVISOR_USERNAME='admin',SUPERVISOR_PASSWORD='password',SUPERVISOR_SERVER_URL='
http://hostname:9001'           ; process environment additions


On Tue, Dec 7, 2010 at 15:53, David Bronke <[email protected]> wrote:

> The documentation for crashmail seems to be nearly nonexistent, and I'm
> confused as to how to use it... The only docs I can find are in the script
> itself, but the command listed in the example supervisord config section is
> for paster, not crashmail. Is this actually the correct command to use? If
> so, what should the contents of 'myserve.ini' be?
>
> I'd like to figure out how to use all the superlance plugins so the current
> README.txt can be updated... once I've worked through all the issues I find,
> I'll submit a patch.
>
> Thanks!
>
> _______________________________________________
> Supervisor-users mailing list
> [email protected]
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>
>


-- 
Jason Koppe
[email protected]
(210) 445-8242
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to