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
f557ea3a
Commit
f557ea3a
authored
Nov 27, 2001
by
Robert Ricci
Browse files
Added a check to make sure it gets run as root.
parent
b1e28334
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/reload_daemon.in
View file @
f557ea3a
...
...
@@ -2,6 +2,15 @@
use
English
;
use
Getopt::
Std
;
#
# This should run as root to make sure that it has permission to reboot nodes
# (since only root is allowed to power cycle nodes at any time - it's time-
# limited for anyone else)
#
if
(
$UID
!=
0
)
{
die
"
This should only be run as root!
\n
";
}
#
# Look for nodes to reload.
#
...
...
Write
Preview
Supports
Markdown
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