Commit 81c2193d authored by Leigh Stoller's avatar Leigh Stoller

Remember to remove the per-experiment DB when the experiment is

terminated!
parent 18e17d40
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2003, 2006 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -23,7 +23,9 @@ sub usage()
#
# Configure variables
#
my $TBROOT = "@prefix@";
my $TBROOT = "@prefix@";
my $OPSDBSUPPORT = @OPSDBSUPPORT@;
my $dbcontrol = "$TBROOT/sbin/opsdb_control";
# Untaint the path
$ENV{'PATH'} = "/usr/bin:$TBROOT/libexec:$TBROOT/libexec/ns2ir" .
......@@ -78,6 +80,9 @@ $errors += TBExptRemoveVirtualState( $pid, $eid );
print "Removing visualization data...\n";
system("prerender -r $pid $eid");
system("$dbcontrol delexpdb $pid $eid")
if ($OPSDBSUPPORT);
print "Cleanup finished! " . TBTimeStamp() . "\n";
# We exit with whether we had errors or not.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment