How do I make Windows aware of a service I have written in Python?

后端 未结 4 1257
旧巷少年郎
旧巷少年郎 2020-12-23 18:08

In another question I posted yesterday, I got very good advice on how a Python script could be run as a service in Windows. What I\'m left wondering is: How is Windows aware

4条回答
  •  天涯浪人
    2020-12-23 19:07

    You can use srvany.exe from Windows NT Resource Kit to create a user defined service that will show up in the admin tools...

    http://support.microsoft.com/kb/137890

    I am using this method to run tracd (a python script / server) for trac.

    Here are some very clear instructions: http://www.tacktech.com/display.cfm?ttid=197

    It does require some registry editing (very minimal and easy) but will allow you to make any command line / script a windows service.

提交回复
热议问题