3 from qa.Test import Test
8 Starts the myplc service
11 def call(self, system_type, root_dir):
13 start_command = " /sbin/service plc start "
16 if system_type in ['vserv', 'vserver']:
17 full_command += " vserver %(root_dir)s exec "
18 elif system_type in ['chroot']:
21 raise Exception, "Invalid system type %(system_type)s" % locals()
23 full_command += start_command % locals()
25 if self.config.verbose:
26 utils.header(full_command)
28 (stdout, stderr) = utils.popen(full_command)
30 if self.config.verbose:
31 utils.header("\n".join(stdout))