examples/myservice.py
def run(self):
        '''
        Daemon start to run here.
        '''

        # Run while there is no stop request.
        while os.path.exists(RUNFILE):
            try:
                pass
            except Exception as err:
                if DEBUG:
                    raise
                else:
                    sys.stderr.write('%s\n' % (err))
            finally:
                wait(timeout=LOOP_SLEEP)

        Daemon start to run here.
        
Daemon start to run here.
Daemon start to run here .
def run(self):
        while os.path.exists(RUNFILE):
            try:
                pass
            except Exception as err:
                if DEBUG:
                    raise
                else:
                    sys.stderr.write('%s\n' % (err))
            finally:
                wait(timeout=LOOP_SLEEP)
def run ( self ) : while os . path . exists ( RUNFILE ) : try : pass except Exception as err : if DEBUG : raise else : sys . stderr . write ( '%s\n' % ( err ) ) finally : wait ( timeout = LOOP_SLEEP )
Daemon start to run here.
Daemon start to run here .
'''
        Daemon start to run here.
        ''' # Run while there is no stop request.
self