Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Cecchet
emulab-devel
Commits
38055b76
Commit
38055b76
authored
20 years ago
by
Leigh B. Stoller
Browse files
Options
Downloads
Patches
Plain Diff
Minor change to usage statement.
Add explicit -w option to wait for node to reboot.
parent
52f1e2b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/node_admin.in
+8
-5
8 additions, 5 deletions
utils/node_admin.in
with
8 additions
and
5 deletions
utils/node_admin.in
+
8
−
5
View file @
38055b76
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -14,12 +14,13 @@ use Getopt::Std;
#
sub
usage
()
{
print
STDOUT
"
Usage: nodeadmin [-h] [-n] <on | off> <node>
\n
";
print
STDOUT
"
Usage: nodeadmin [-h] [-n
| -w
] <on | off> <node>
\n
";
print
STDOUT
"
-h This message
\n
";
print
STDOUT
"
-n Don't reboot nodes
\n
";
print
STDOUT
"
-n Do not reboot node
\n
";
print
STDOUT
"
-w Wait for node to come back up if rebooted
\n
";
exit
(
-
1
);
}
my
$optlist
=
"
hn
";
my
$optlist
=
"
hn
w
";
#
# Configure variables
...
...
@@ -121,7 +122,9 @@ DBQueryFatal("update nodes set startupcmd='', startstatus='none' ".
# Reboot node
#
if
(
!
$options
{
n
})
{
if
(
system
("
$nodereboot
",
"
$node
"))
{
my
$optarg
=
(
$options
{"
w
"}
?
"
-w
"
:
"");
if
(
system
("
$nodereboot
$optarg
$node
"))
{
die
("
*** $0:
\n
"
.
"
WARNING: Could not reboot
$node
.
\n
");
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment