Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(120)  |  Call(0)  |  Derive(0)  |  Import(120)
This module implements the servicemanager of the UPnP server.
The service manager manages all devices and services. Its reference
is given to all the other modules, so servicemanager is also used to
hold some global state. 

src/d/i/digsby-HEAD/installer/py2exe/py2exe/samples/advanced/MyService.py   digsby(Download)
    def SvcDoRun(self):
        import servicemanager
        # Write a 'started' event to the event log...
        win32evtlogutil.ReportEvent(self._svc_name_,
                                    servicemanager.PYS_SERVICE_STARTED,

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/lib/win32serviceutil.py   TrustRouter(Download)
    # end up being used for all services should we ever remove
    # pythonservice.exe)
    import servicemanager
    global g_debugService
 
    def __init__(self, args):
        import servicemanager
        self.ssh = servicemanager.RegisterServiceCtrlHandler(args[0], self.ServiceCtrlHandlerEx, True)
        servicemanager.SetEventSourceName(self._svc_name_)
        self.checkPoint = 0

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/lib/win32serviceutil.py   main(Download)
    # end up being used for all services should we ever remove
    # pythonservice.exe)
    import servicemanager
    global g_debugService
 
    def __init__(self, args):
        import servicemanager
        self.ssh = servicemanager.RegisterServiceCtrlHandler(args[0], self.ServiceCtrlHandlerEx, True)
        servicemanager.SetEventSourceName(self._svc_name_)
        self.checkPoint = 0

src/e/a/EasyCluster-0.21/easycluster/windows_service.py   EasyCluster(Download)
            self.ReportServiceStatus(win32service.SERVICE_RUNNING)
            import easycluster.server
            import servicemanager
            servicemanager.LogInfoMsg('%s - Starting (%r)' % (self._svc_name_, sys.executable))
            easycluster.server.server_main(['-S', '-k', KEY_PATH])
        except Exception:
            import servicemanager
    def SvcStop(self):
        '''Stop the service.'''
 
        import easycluster.server
        import servicemanager

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/service/serviceEvents.py   TrustRouter(Download)
import win32serviceutil, win32service
import win32event
import servicemanager
 
# Most event notification support lives around win32gui

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/service/serviceEvents.py   main(Download)
import win32serviceutil, win32service
import win32event
import servicemanager
 
# Most event notification support lives around win32gui

src/s/p/spambayes-1.1b1/windows/pop3proxy_service.py   spambayes(Download)
import logging
 
import servicemanager
try:
    servicemanager.LogInfoMsg(os.getcwd())
    Requires pywin32.    
    """
    import servicemanager
    def emit(self, record):
        """Emit a record.
    def SvcDoRun(self):
        import servicemanager
        # Setup our state etc
        try:
            sb_server.prepare(can_stop=False)
                print message
                # Log an error event to the event log.
                import servicemanager
                servicemanager.LogErrorMsg(message)
        finally:

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/site-packages/win32/lib/win32serviceutil.py   landline-server(Download)
    # end up being used for all services should we ever remove
    # pythonservice.exe)
    import servicemanager
    global g_debugService
 
    def __init__(self, args):
        import servicemanager
        self.ssh = servicemanager.RegisterServiceCtrlHandler(args[0], self.ServiceCtrlHandlerEx, True)
        servicemanager.SetEventSourceName(self._svc_name_)
        self.checkPoint = 0

src/p/y/Pyro-3.16/Pyro/ext/BasicNTService.py   Pyro(Download)
	def logTermination(self):
		import servicemanager
		servicemanager.LogMsg(servicemanager.EVENTLOG_INFORMATION_TYPE,
									  servicemanager.PYS_SERVICE_STOPPED,
									   (self._svc_name_, ""))
 
	def logStarted(self):
		import servicemanager
	shouldRedirect = True
	try:
		import servicemanager
	except ImportError:
		# If we can't even 'import servicemanager', we're obviously not running

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/lib/win32serviceutil.py   SublimeSpeech(Download)
    # end up being used for all services should we ever remove
    # pythonservice.exe)
    import servicemanager
    global g_debugService
 
    def __init__(self, args):
        import servicemanager
        self.ssh = servicemanager.RegisterServiceCtrlHandler(args[0], self.ServiceCtrlHandlerEx, True)
        servicemanager.SetEventSourceName(self._svc_name_)
        self.checkPoint = 0

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next