(self)
| 584 | return (self.lastClientConnected + 30) > time() |
| 585 | |
| 586 | def restart(self): |
| 587 | self.shutdown() |
| 588 | chdir(owd) |
| 589 | # close some open fds |
| 590 | for i in range(3,50): |
| 591 | try: |
| 592 | close(i) |
| 593 | except : |
| 594 | pass |
| 595 | |
| 596 | execl(executable, executable, *sys.argv) |
| 597 | _exit(0) |
| 598 | |
| 599 | def shutdown(self): |
| 600 | self.log.info(_("shutting down...")) |