Sure,

#!/bin/bash
mode=`ps -u garlandkr -o rss,etime,pid,command | awk '/paster/ && !/awk/
{sub("--","");print$7}'`
if [ $mode = "daemon" ]; then
    echo "daemon mode"
elif [ $mode = "reload" ]; then
    echo "reload mode"
    python ~/mailer.py "WebFaction Issue" "Paster is running in reload mode,
fix it."
fi

replace garlandkr with your user name and provide your own mailing method.
;)

On Sun, Jun 8, 2008 at 2:25 PM, Brandon Singer <[EMAIL PROTECTED]> wrote:

>
> On Sun, 2008-06-08 at 11:22 -0400, Garland, Ken R wrote:
> > I'm using WebFaction with a decent size app and using the 80MB plan.
> > every once in a while I forget and leave paster in --reload instead of
> > --daemon while I'm developing and it grows to about 100MB. They are
> > nice about sending a reminder and a trouble ticket instead of charging
> > me, but the last time (today) I setup a cron to check every so often
> > if I'm running in daemon mode or reload mode and have it email me.
>
> I didn't know that could happen. Would you mind sharing that script?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to