def is_running(self):
try:<EOL><INDENT>kill(int(self.pid.get()), <NUM_LIT:0>)<EOL>return True<EOL><DEDENT>except:<EOL><INDENT>self.pid.remove()<EOL>self.lock.remove()<EOL>return False<EOL><DEDENT>
Check if the service is running.