Skip to content
GitLab
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
561eddfe
Commit
561eddfe
authored
Jul 23, 2012
by
Mike Hibler
Browse files
Don't even try to run portstats if it doesn't exist.
parent
8cc67efe
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbswap.in
View file @
561eddfe
...
...
@@ -45,6 +45,7 @@ my $piper = "$TBROOT/sbin/locpiper";
my
$mapper
=
"
$TBROOT
/bin/mapper
";
my
$wrapper
=
"
$TBROOT
/libexec/assign_wrapper
";
my
$SNMPIT
=
"
$TBROOT
/bin/snmpit
";
my
$portstats
=
"
$TBROOT
/bin/portstats
";
my
$NFSTRACESUPPORT
=
@NFSTRACESUPPORT@
;
my
$PGENISUPPORT
=
@PROTOGENI_SUPPORT@
;
...
...
@@ -1492,10 +1493,10 @@ sub doSwapin($) {
# Don't clear port counters on MODIFY.
# (XXX should clear new nodes' port counters.)
if
(
$type
>=
RETRY
)
{
if
(
$type
>=
RETRY
&&
-
x
$portstats
)
{
print
"
Clearing port counters.
\n
";
TBDebugTimeStamp
("
portstats started
");
if
(
system
("
portstats
$stackarg
-z -a -q
$pid
$eid
"))
{
if
(
system
("
$
portstats
$stackarg
-z -a -q
$pid
$eid
"))
{
tbwarn
"
Failed to clear port counters.
";
#
# This is a non-fatal error.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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