7 from qa.PLCs import PLC, PLCs
11 Starts the myplc service
14 def call(self, plc_name = None):
16 # Get plc configuration from config
17 plc = self.config.get_plc(plc_name)
18 command = "/sbin/service plc start "
19 if self.config.verbose:
21 (status, output) = plc.commands(command)
23 if self.config.verbose:
26 # Some plcs may fail when trying to start the http/xmlrpc server
27 # because the port is already in use. We must start a server on
29 plc.start_xmlrpc_server()
34 if __name__ == '__main__':
35 args = tuple(sys.argv[1:])