| Trees | Indices | Help |
|
|---|
|
|
win32serviceutil.ServiceFramework --+
|
object --+
|
BasicNTService
Abstract base to help out with building NT services
in Python with the win32all(by Mark Hammond) support for
python nt services.
Remember to set the two following class attributes
to something sensible in your subclass
_svc_name_ = 'PyroNS'
_svc_display_name_ = 'Pyro Naming Service NT service'
The following are optional
_svc_deps_: This should be set to the list of service names
That need to be started before this one.
_exe_name_: This should be set to a service .EXE if you're not
going to use PythonService.exe
_svc_description_ : This is the descriptive string that you find
in the services applet
To register the service with the SCM the easiest way is to include the
following at the bottom of the file where your subclass is defined.
if __name__ == '__main__':
TheClassYouDerivedFromBasicNTService.HandleCommandLine()
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Methods | |||
|
|||
|
|||
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jun 27 12:35:57 2008 | http://epydoc.sourceforge.net |