c1e8f26720
- Socket Interface: - implemented sessions timeouts collector (I like calling it GARBAGE collector), each session has now a configurable TTL - added 'alive' command to see if a session is still alive git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1528 cd1c1023-2f26-0410-ae45-c471fc1f0318
22 lines
545 B
Python
22 lines
545 B
Python
#!/usr/bin/python
|
|
import os
|
|
import sys
|
|
if os.getuid():
|
|
print "Please run %s as root" % (sys.argv[0],)
|
|
sys.exit(1)
|
|
sys.path.insert(0,'/usr/lib/entropy/libraries')
|
|
sys.path.insert(0,'/usr/lib/entropy/client')
|
|
sys.path.insert(0,'../libraries')
|
|
sys.path.insert(0,'../client')
|
|
# disable pid management
|
|
sys.argv.append("--no-pid-handling")
|
|
from entropy import SocketHostInterface, EquoInterface
|
|
Equo = EquoInterface()
|
|
srv = SocketHostInterface(Equo,EquoInterface)
|
|
try:
|
|
srv.go()
|
|
except KeyboardInterrupt:
|
|
srv.Gc.kill()
|
|
sys.exit(0)
|
|
|