Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
4d55ff29
Commit
4d55ff29
authored
Sep 27, 2002
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug setting so that I can test it without actually starting up
ntp each time.
parent
b437e338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
tmcd/ntpstart
tmcd/ntpstart
+9
-6
No files found.
tmcd/ntpstart
View file @
4d55ff29
...
...
@@ -43,15 +43,18 @@ my $newfile = "/tmp/ntp.conf.new";
my
$ntpfile
=
"
/etc/ntp.conf
";
my
$driftfile
=
"
/etc/ntp.drift
";
my
$pidfile
=
"
/var/run/ntpd.pid
";
my
$debug
=
0
;
#
# Since this is a wrapper, we have to try to start ntp no matter what.
#
sub
ntpstart
()
{
# system("ntpd @ARGV");
# return ($? >> 8);
print
"
ntpd
@ARGV
\n
";
return
0
;
if
(
$debug
)
{
print
"
@ARGV
\n
";
return
0
;
}
system
("
@ARGV
");
return
(
$?
>>
8
);
}
#
...
...
@@ -110,11 +113,11 @@ foreach my $line (@ntpinfo) {
SWITCH1:
{
/^PEER=(.*)$/
&&
do
{
print
NEW
"
peer
$
_
\n
";
print
NEW
"
peer $
1
\n
";
last
SWITCH1
;
};
/^SERVER=(.*)$/
&&
do
{
print
NEW
"
server
$
_
\n
";
print
NEW
"
server $
1
\n
";
last
SWITCH1
;
};
/^DRIFT=(.*)$/
&&
do
{
...
...
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