Example #1
0
def main():
    ctl = oi.CtlProgram('ctl program', config.ctl_url)
    ctl.run()
Example #2
0
def main():
    ctl = oi.CtlProgram('ctl program', 'ipc:///tmp/oi-random_string.sock')
    ctl.run()
Example #3
0
def stop_function():
    ctl = oi.CtlProgram('ctl program', config.ctl_url)
    ctl.call('stop')
    ctl.client.close()
Example #4
0
 def setUp(self):
     self.address = 'ipc:///tmp/test-programd.sock'
     self.p = oi.Program('programd', self.address)
     self.ctl = oi.CtlProgram('programctl', self.address)
Example #5
0
def main():
    ctl = oi.CtlProgram('ctl program', 'ipc:///tmp/programd.sock')
    ctl.run()
Example #6
0
def main():
    addr = sys.argv.pop(1)
    print('addr is: `{}`'.format(addr))
    ctl = oi.CtlProgram('ctl program', addr)
    ctl.run()