Re: Re: PyDS as a service
Georg Bauer <gb-BRhJDZTO+/[email protected]> Mon, 29 Mar 2004 21:44:19 +0200
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <r02010100-1028-78E384D281B911D8A517000A9573A72A@[10.0.0.145]> |
Hi! > > For TooFPy I copied the ZService script from Zope and built > > tsctl-win32.py - a service controller script that can run TooFPy as > I'd like to have PyDS as a service. I've never got round to looking at > this myself, but it's been on my list for a long while. You can fetch the tsctl-win32.py from <http://simon.bofh.ms/cgi-bin/cvsweb/Toolserver/tsctl-win32.py?rev=1.7& content-type=text/x-cvsweb-markup> Look down in the last lines, where it builds the statement to execute the actual program and change the 'tsctl' to 'pyds-start'. Two other changes are the assignments to _svc_name and _svc_display_name that should be changed from TooFPy to PyDS. And the script should be called pyds-win32.py. Afterwards you can install your service with "python pyds-win32.py install" and then should be able to do "net start pyds" to start your PyDS service. This is all in theory, I don't run PyDS on any windows machine (and the windows machines where I have access to are production servers that won't ever see a PyDS ;-) ), so it's not tested. bye, Georg