circus-tent / circus

A Process & Socket Manager built with zmq
http://circus.readthedocs.org/
Other
1.55k stars 258 forks source link

Windows Services #1033

Open ayeganov opened 7 years ago

ayeganov commented 7 years ago

I am using Circus on Windows, and need to start/stop Windows services. I have gone through the documentation, but don't see an obvious way of making Circus monitor the started service process. Do I need to extend the Process class along with the Watcher to get this functionality?

k4nar commented 7 years ago

I'm not sure what you mean by Windows services. Do you mean a process, or like a system service ?

ayeganov commented 7 years ago

By Windows Service I mean this - https://en.wikipedia.org/wiki/Windows_service. In short - they are windows way of creating daemonized processes.

k4nar commented 7 years ago

Oh ok, thanks.

So no, Circus has no support for that. The porting of Circus on Windows is very rough, and only handle Unix-like functionalities.

ayeganov commented 7 years ago

I see you are using psutil already internally to start processes etc. PSUtil already has support for Windows Services https://pythonhosted.org/psutil/#windows-services. What would recommend as a good approach to add support for WS?