Files
entropy/client/entropy-system-daemon
T
lxnay a592308c79 Entropy:
- Socket Interface: implemented pluggable authentication modules support (90% done)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1535 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-29 17:30:43 +00:00

22 lines
550 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,None,EquoInterface)
try:
srv.go()
except KeyboardInterrupt:
srv.Gc.kill()
sys.exit(0)