OPSI.Service.Process module¶
| copyright: | uib GmbH <info@uib.de> | 
|---|---|
| author: | Christian Kampka | 
| author: | Jan Schneider <j.schneider@uib.de> | 
| license: | GNU Affero General Public License version 3 | 
- 
class 
OPSI.Service.Process.OpsiDaemon(args=[], reactor=<twisted.internet.epollreactor.EPollReactor object>)¶ Bases:
object- 
allowRestart= True¶ 
- 
callRemote(method, *args, **kwargs)¶ 
- 
connector¶ alias of
OpsiProcessConnector
- 
findScript()¶ 
- 
getSocket()¶ 
- 
isRunning()¶ 
- 
script= None¶ 
- 
sendSignal(sig)¶ 
- 
start()¶ 
- 
stop()¶ 
- 
user= None¶ 
- 
 
- 
class 
OPSI.Service.Process.OpsiPyDaemon(socket, args=[], reactor=<twisted.internet.epollreactor.EPollReactor object>)¶ Bases:
OPSI.Service.Process.OpsiDaemon- 
MAIN= 'import sys\n\nfrom twisted.application.reactors import getReactorTypes, installReactor\n\nfor r in getReactorTypes():\n\tif sys.argv[-3] == r.moduleName:\n\t\tinstallReactor(r.shortName)\n\nfrom OPSI.Service.Process import runOpsiService\n\nrunOpsiService(sys.argv[-1],sys.argv[-2], sys.argv[-3])\n'¶ 
- 
findScript()¶ 
- 
getSocket()¶ 
- 
script= '/tmp/shiningpanda/jobs/ebf74689/virtualenvs/d41d8cd9/bin/python'¶ 
- 
 
- 
class 
OPSI.Service.Process.SupervisionProtocol(daemon, deferred=<Deferred>)¶ Bases:
twisted.internet.protocol.ProcessProtocol- 
connectionMade()¶ 
- 
errReceived(data)¶ 
- 
kill()¶ 
- 
processEnded(reason)¶ 
- 
stop()¶ 
- 
 
- 
OPSI.Service.Process.runOpsiService(serviceClass, configurationClass, reactorModule)¶