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
55b7af79
Commit
55b7af79
authored
Dec 11, 2006
by
Dan Gebhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill processes on ops which are used by WaNetMon
- automanagerclient - opsrecv - manager
parent
c3128fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
0 deletions
+72
-0
pelab/bgmon/stopOpsWanetmon.pl
pelab/bgmon/stopOpsWanetmon.pl
+72
-0
No files found.
pelab/bgmon/stopOpsWanetmon.pl
0 → 100644
View file @
55b7af79
#!/usr/bin/perl
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# All rights reserved.
#
#
# kill processes associated with wanetmon on ops
#
use
strict
;
sub
kill_pid
($){
my
(
$pid
)
=
@_
;
`
kill
$pid
`;
my
$successresult
=
`
ps -a -o pid | grep
$pid
`;
if
(
$successresult
ne
""
){
print
"
failresult =
$successresult
\n
";
return
0
;
}
else
{
return
1
;
}
}
my
(
$pid
,
$command
);
###########################################
(
$pid
,
$command
)
=
split
("
",
`
ps -a -o pid,command | grep "perl automanagerclient.pl" | grep -v "grep"
`,
2
);
chomp
$command
;
print
"
stopping: (
$pid
,
$command
)
\n
";
if
(
kill_pid
(
$pid
)
){
print
"
success!
\n
";
}
else
{
print
"
FAILURE of killing pid=
$pid
\n
";
}
###########################################
(
$pid
,
$command
)
=
split
("
",
`
ps -a -o pid,command | grep "perl manager.pl" | grep -v "grep"
`,
2
);
chomp
$command
;
print
"
stopping: (
$pid
,
$command
)
\n
";
if
(
kill_pid
(
$pid
)
){
print
"
success!
\n
";
}
else
{
print
"
FAILURE of killing pid=
$pid
\n
";
}
###########################################
(
$pid
,
$command
)
=
split
("
",
`
ps -a -o pid,command | grep "perl opsrecv.pl" | grep -v "grep"
`,
2
);
chomp
$command
;
print
"
stopping: (
$pid
,
$command
)
\n
";
if
(
kill_pid
(
$pid
)
){
print
"
success!
\n
";
}
else
{
print
"
FAILURE of killing pid=
$pid
\n
";
}
###########################################
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