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:
20 utils.header(command, logfile = self.config.logfile)
21 (status, output) = plc.commands(command)
23 if self.config.verbose:
24 utils.header(output, logfile = self.config.logfile)
28 if __name__ == '__main__':
29 args = tuple(sys.argv[1:])