Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
7f0aac0b
Commit
7f0aac0b
authored
14 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
tweek Xvfb handling
parent
132f3dc3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
releng.control/cc.sh
+0
-26
0 additions, 26 deletions
releng.control/cc.sh
releng.control/killcc.sh
+25
-1
25 additions, 1 deletion
releng.control/killcc.sh
with
25 additions
and
27 deletions
releng.control/cc.sh
+
0
−
26
View file @
7f0aac0b
...
@@ -65,29 +65,3 @@ echo
...
@@ -65,29 +65,3 @@ echo
echo
" remember to check that X virtual frame buffer is running for display :
$DISPLAYNUMBER
for headless unit tests"
;
echo
" remember to check that X virtual frame buffer is running for display :
$DISPLAYNUMBER
for headless unit tests"
;
ps
-ef
|
grep
Xvfb
ps
-ef
|
grep
Xvfb
echo
;
echo
;
PIDFILE
=
cc.xvfbpid
echo
;
if
[
-f
${
PIDFILE
}
]
;
then
echo
" Killing Xvfb process from PID file"
PID
=
`
cat
${
PIDFILE
}
`
kill
-3
$PID
# if permission denied, for example, then be sure not to remove PID file
if
[
$?
]
then
if
kill
-9
$PID
;
then
echo
" Xvfb process stopped"
rm
-f
${
PIDFILE
}
else
echo
" Xvfb process could not be stopped"
fi
else
echo
" Could not kill the process."
fi
else
echo
" PID file (
${
PIDFILE
}
) does not exist."
echo
" Either Xvfb not running, or PID file has been deleted"
fi
echo
;
This diff is collapsed.
Click to expand it.
releng.control/killcc.sh
+
25
−
1
View file @
7f0aac0b
...
@@ -21,4 +21,28 @@ else
...
@@ -21,4 +21,28 @@ else
echo
" PID file (
${
PIDFILE
}
) does not exist."
echo
" PID file (
${
PIDFILE
}
) does not exist."
echo
" Either CC not running, or PID file deleted"
echo
" Either CC not running, or PID file deleted"
fi
fi
echo
echo
;
\ No newline at end of file
PIDFILE
=
cc.xvfbpid
if
[
-f
${
PIDFILE
}
]
;
then
echo
" Killing Xvfb process from PID file"
PID
=
`
cat
${
PIDFILE
}
`
kill
-3
$PID
# if permission denied, for example, then be sure not to remove PID file
if
[
$?
]
then
if
kill
-9
$PID
;
then
echo
" Xvfb process stopped"
rm
-f
${
PIDFILE
}
else
echo
" Xvfb process could not be stopped"
fi
else
echo
" Could not kill the process."
fi
else
echo
" PID file (
${
PIDFILE
}
) does not exist."
echo
" Either Xvfb not running, or PID file has been deleted"
fi
echo
;
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