~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/devscripts/ec2test/remote.py

  • Committer: Steve Kowalik
  • Date: 2011-08-15 08:56:31 UTC
  • mto: This revision was merged to the branch mainline in revision 13692.
  • Revision ID: stevenk@ubuntu.com-20110815085631-rfwr9mqc2ufkpkgw
Make use of shutdown rather than at to kill the ec2 instance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
 
174
174
        time.sleep(self.SHUTDOWN_DELAY)
175
175
 
 
176
        # Cancel the running shutdown.
 
177
        subprocess.call(['sudo', 'shutdown', '-c'])
 
178
 
176
179
        # We'll only get here if --postmortem didn't kill us.  This is our
177
180
        # fail-safe shutdown, in case the user got disconnected or suffered
178
181
        # some other mishap that would prevent them from shutting down this