Commit caa89fa9 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix to restart.

parent e2b8b5f0
#!/usr/bin/perl -w
#
# Copyright (c) 2010-2012 University of Utah and the Flux Group.
# Copyright (c) 2010-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -247,6 +247,18 @@ sub Restart()
return;
}
if ($stopped) {
#
# Need to to do this so the rc script knows it is okay to start.
# 0 - Testbed is enabled.
# 1 - Testbed is disabled.
# -1 - Testbed is coming back online, so start up daemons.
#
system("$SETSITEVAR general/testbed_shutdown -1");
if ($?) {
print "*** Could not set general/testbed_shutdown to -1\n";
exit(1);
}
print "Starting up testbed daemons.\n";
if (system("$MFRISBEED start") || system("$STARTUP start")) {
print "*** Could not restart testbed daemons.\n";
......
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