Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
68d00983
Commit
68d00983
authored
Apr 27, 2014
by
Mike Hibler
Browse files
Put a timeout on the tmcc SHUTDOWN call.
Otherwise, an ops node will hang forever shutting down if the boss node is down.
parent
9645f36f
Changes
1
Show whitespace changes
Inline
Side-by-side
clientside/tmcc/common/rc.ctrlnode
View file @
68d00983
...
...
@@ -187,7 +187,7 @@ sub doboot()
sub
doshutdown
()
{
print
("
Informing Emulab Control that we are are rebooting
\n
");
if
(
tmcc
(
TMCCCMD_STATE
,
"
SHUTDOWN
")
<
0
)
{
if
(
tmcc
(
TMCCCMD_STATE
,
"
SHUTDOWN
"
,
undef
,
("
timeout
"
=>
3
)
)
<
0
)
{
fatal
("
Error sending SHUTDOWN to Emulab Control!
");
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment