48 | | pstatus, pout = self.cmd.run('/sbin/service %s status' % \ |
49 | | entry.get('name')) |
50 | | if pstatus: |
51 | | self.cmd.run('/sbin/service %s start' % (entry.get('name'))) |
52 | | pstatus, pout = self.cmd.run('/sbin/service %s status' % \ |
53 | | entry.get('name')) |
| 50 | pstatus, pout = self.cmd.run('/sbin/service %s status' % entry.get('name')) |
| 51 | if not(self.setup.get('dryrun')) and ((command == 'start' and pstatus) or (command == 'stop' and not pstatus)): |
| 52 | self.cmd.run('/sbin/service %s %s' % (entry.get('name'), command)) |
| 53 | pstatus, pout = self.cmd.run('/sbin/service %s status' % entry.get('name')) |
| 54 | |