~sseman/juju-chaos-monkey/add-shutdown

« back to all changes in this revision

Viewing changes to chaos/kill.py

  • Committer: seman.said at canonical
  • Date: 2015-05-12 22:44:09 UTC
  • mfrom: (9.1.3 ufw-management)
  • Revision ID: seman.said@canonical.com-20150512224409-sf1xwf84pkb0ftvw
Ensure ufw is enabled and disabled during network testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        return pids.split(' ')
31
31
 
32
32
    def kill_jujud(self, quiet_mode=True):
33
 
        logging.info("Kill.kill_jujud")
34
33
        pids = self.get_pids('jujud')
35
34
        if not pids:
36
35
            logging.error("Jujud process ID not found")
40
39
        run_shell_command('kill -s SIGKILL ' + pids[0])
41
40
 
42
41
    def kill_mongodb(self, quiet_mode=True):
43
 
        logging.info("Kill.kill_mongod")
44
42
        pids = self.get_pids('mongod')
45
43
        if not pids:
46
44
            logging.error("MongoDB process ID not found")