❦ 16 mai 2013 19:02 CEST, Jonathan Vanasco <twisted-pyt...@2xlp.com> :

> i'm running a twisted daemon on ubuntu
>
> It seems to get shut down by the system periodically.  Logs show that
> the kernel (or something) kills it for taking up too much memory.  I
> definitely have coding issues in there that i'm working on to address
> this.
>
> Does anyone have a suggestion for tools I can easily use on ubuntu to
> monitor and restart if needed ?  I haven't had to do something like
> this in 5 years, and back then it was a hassle to get monit or
> supervisord working.

You can just write an upstart job. Upstart will take core of logging (if
you don't already log to syslog), starting and restarting.

description "My daemon"
start on (static-network-up or started networking)
stop on runlevel [06]

respawn
respawn limit 10

console log

exec twistd -n ....
-- 
printk("Cool stuff's happening!\n")
        2.4.3 linux/fs/jffs/intrep.c

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to