Commit 24702cd1 authored by Leigh Stoller's avatar Leigh Stoller

Add a call to tarfile_setup during restart.

parent 81bdfd0b
......@@ -87,6 +87,7 @@ my $EXPORTS_SETUP = "$TB/sbin/exports_setup";
my $GENTOPOFILE = "$TB/libexec/gentopofile";
my $IMAGE_SETUP = "$TB/sbin/image_setup";
my $ARPLOCKDOWN = "$TB/sbin/arplockdown";
my $TARFILES_SETUP = "$TB/bin/tarfiles_setup";
# Cache of instances to avoid regenerating them.
my %aggregates = ();
......@@ -892,6 +893,17 @@ sub Start($$$)
}
print STDERR $output;
#
# This could result in more work then we want.
#
if ($action eq "restart") {
$output = GeniUtil::ExecQuiet("$TARFILES_SETUP -q $pid $eid");
if ($?) {
$msg = "Could not setup tarfiles:\n$output";
goto bad;
}
}
foreach $sliver (@slivers) {
if (ref($sliver) ne "GeniSliver::Node") {
next
......
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