[Twisted-Python] daemonization

Christopher Armstrong radix at twistedmatrix.com
Mon Feb 24 02:53:34 EST 2003


On Sun, Feb 23, 2003 at 11:21:28PM +0000, Clark C. Evans wrote:
> What I'd like to do now is have this act like a deamon where
> I run a command like:

A simple wrapper around `twistd' could give you the `start', `stop',
and `reload' capabilities.

>   server start     # starts server, and then returns
>   server stop      # stops server
>   server reload    # reloads server
> 
> also including functionality of logging to a given file
> and rotating the logs as necessary.  Anyway, I'm sure there 

twistd does that.

> 
> P.S. Yes, I suppose this is what that "taps" thing is all
> about... however, it doesn't seem to do the deamon 
> management well (it doesn't do stop/start/reload, right?)

You can use twistd without taps. See `-y'.

-- 
 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/




More information about the Twisted-Python mailing list