Re: [Web-SIG] daemon tools

2007-03-08 Thread Bill Janssen
> For symmetry's sake in Windows a Python service manager could simply > use SCManager API under the hood (through win32all) to get the job done, > still keeping a consistent cross-platform modus operandi. That's what I do in UpLib. Works pretty well. Bill ___

Re: [Web-SIG] daemon tools

2007-03-08 Thread Sidnei da Silva
On 3/8/07, Jim Fulton <[EMAIL PROTECTED]> wrote: > > On Mar 7, 2007, at 8:42 AM, Sidnei da Silva wrote: > > > On Windows, the NT Service Controller does all the dirty job. And it's > > pretty easy to write a service in Python that can run any application. > > The simplest Python service is shorter

Re: [Web-SIG] daemon tools

2007-03-08 Thread Jim Fulton
On Mar 7, 2007, at 8:42 AM, Sidnei da Silva wrote: > On Windows, the NT Service Controller does all the dirty job. And it's > pretty easy to write a service in Python that can run any application. > The simplest Python service is shorter than 30 lines I think. Would such a controller: - Invoke

Re: [Web-SIG] daemon tools

2007-03-07 Thread Robert Brewer
Jim Fulton wrote: > On Mar 5, 2007, at 1:38 PM, Robert Brewer wrote: > > ...where the "pywebd" module: > > > > 1. Composes the WSGI stack (provides a library to do so at least), > > 2. Notifies frameworks of site-wide events (like start, > stop, restart > > and graceful), > > 3. Provides plugin

Re: [Web-SIG] daemon tools

2007-03-07 Thread Sidnei da Silva
On 3/7/07, Rodrigo Senra <[EMAIL PROTECTED]> wrote: > And, I am sure you are aware of that, the service can also be managed > by Python through win32all: > # snip Yeah, sorry. I thought that was pretty obvious, but I realize it wasn't *wink*. > For symmetry's sake in Windows a Python service mana

Re: [Web-SIG] daemon tools

2007-03-07 Thread Rodrigo Senra
[ Sidnei da Silva ]: |The service, after being registered can be managed with standard tools |present on the system: | |C:\src>net stop bthserv # cut |C:\src>net start bthserv # cut |C:\src>sc \\pena queryex bthserv # cut |C:\src>sc \\pena queryex xmlprov # cut And, I am sure you are aware of tha

Re: [Web-SIG] daemon tools

2007-03-07 Thread Sidnei da Silva
On Windows, the NT Service Controller does all the dirty job. And it's pretty easy to write a service in Python that can run any application. The simplest Python service is shorter than 30 lines I think. Dealing with a service on Windows usually involves: - Registering/Unregistering the service

Re: [Web-SIG] daemon tools

2007-03-07 Thread Jim Fulton
On Mar 5, 2007, at 1:38 PM, Robert Brewer wrote: ... > What several people have asked for is the ability to combine > applications (and WSGI components) from a variety of frameworks into a > single "website". What I'm proposing is that we standardize on a > set of > topics/channels/events/signals

Re: [Web-SIG] daemon tools

2007-03-07 Thread Jim Fulton
On Mar 5, 2007, at 12:25 PM, Joseph Tate wrote: ... > ll.daemon (http://www.livinglogic.de/Python/daemon/index.html) > seems to be a > straightforward and very simple library for core daemon functionality. ... > I have written my own daemon base class (Pretty restrictive license > [reciprocal],

Re: [Web-SIG] daemon tools

2007-03-07 Thread Jim Fulton
On Mar 5, 2007, at 12:25 PM, Joseph Tate wrote: > On Saturday 03 March 2007 11:08:24 Jim Fulton wrote: >> >> Anyway, I share this for your consideration. There are probably >> better tools out there than zdaemon and supervisor2, but I'm not >> aware of them. :) I'm curious what other people hav

Re: [Web-SIG] daemon tools

2007-03-05 Thread Robert Brewer
Jim Fulton wrote: > For some time, Zope has used a daemon-management tool > we wrote called zdaemon: > >http://www.python.org/pypi/zdaemon > > Ironically, this sort of tool isn't Python specific at all, > and the discussion highlighted some non-Python tools, notably > daemontools and runit, ne

Re: [Web-SIG] daemon tools

2007-03-05 Thread Chad Whitacre
> ll.daemon (http://www.livinglogic.de/Python/daemon/index.html) > seems to be a straightforward and very simple library for core > daemon functionality. I'm using this in Aspen, and I like it. Worth checking out. chad ___ Web-SIG mailing list Web-

Re: [Web-SIG] daemon tools

2007-03-05 Thread Joseph Tate
On Saturday 03 March 2007 11:08:24 Jim Fulton wrote: > > Anyway, I share this for your consideration. There are probably > better tools out there than zdaemon and supervisor2, but I'm not > aware of them. :) I'm curious what other people have found or use. ll.daemon (http://www.livinglogic.de/Py

Re: [Web-SIG] daemon tools

2007-03-05 Thread Jim Fulton
On Mar 3, 2007, at 6:19 PM, Robert Brewer wrote: > Jim Fulton wrote: > > For some time, Zope has used a daemon-management tool > > we wrote called zdaemon: > > > >http://www.python.org/pypi/zdaemon > > > > Ironically, this sort of tool isn't Python specific at all, > > and the discussion high

Re: [Web-SIG] daemon tools

2007-03-03 Thread Robert Brewer
Jim Fulton wrote: > For some time, Zope has used a daemon-management tool > we wrote called zdaemon: > >http://www.python.org/pypi/zdaemon > > Ironically, this sort of tool isn't Python specific at all, > and the discussion highlighted some non-Python tools, notably > daemontools and runit, n

Re: [Web-SIG] daemon tools

2007-03-03 Thread Ian Bicking
Chad Whitacre wrote: >> Anyway, I share this for your consideration. There are probably >> better tools out there than zdaemon and supervisor2, but I'm not >> aware of them. :) I'm curious what other people have found or use. > > There's also monit: > >http://www.tildeslash.com/monit/

Re: [Web-SIG] daemon tools

2007-03-03 Thread Chad Whitacre
> Anyway, I share this for your consideration. There are probably > better tools out there than zdaemon and supervisor2, but I'm not > aware of them. :) I'm curious what other people have found or use. There's also monit: http://www.tildeslash.com/monit/ chad _

[Web-SIG] daemon tools

2007-03-03 Thread Jim Fulton
For some time, Zope has used a daemon-management tool we wrote called zdaemon: http://www.python.org/pypi/zdaemon Until late last year, I found this tool a bit difficult to use because it was essentially undocumented. I was forced to learn enough to mostly document it and have gained a