| Summary: | Cleanup of stale Xvnc processes | ||
|---|---|---|---|
| Product: | Community | Reporter: | Michal Ruzicka <michal.ruza> |
| Component: | CI-Jenkins | Assignee: | Eclipse Webmaster <webmaster> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | david_williams, Kenn.Hussey, nboldt, nicolas.bros |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 308981 | ||
|
Description
Michal Ruzicka
Given the command in Hudson to run Xvnc is this:
Xvnc :${portnumber} -geometry 1024x768 -depth 24 -ac
How about running something like this, when starting up Hudson?
#!/bin/bash
xvncProcesses=$(ps -eopid,command | grep -v grep | grep Xvnc | grep ac | sed "s/ /_/g")
if [[ $xvncProcesses ]]; then
for procline in $xvncProcesses; do
procnum=$(echo $procline | sed "s#\(_Xvnc.\+\)##")
#echo " '"${procline//_/ }"'"
echo " kill -9 $procnum"
kill -9 $procnum
done
fi
Seems like a script integrated with start/restart is a good idea to me. Or, webmasters, do you think it should be a separate script? I can't "read" the script in comment #1 well enough to know if it is correct, but I know tonight I restarted hudson and "manually" killed all the Xvnc processes running under hudsonbuild id. Kind of a hassle. Assigning to webmasters in case you agree it should be integrated with rchudson start/restart. If that's not possible, or you think it should be a separate step, feel free to reassign back to default inbox. Thanks, I smell a script war!
How about a simplified version:
#!/bin/bash
for i in $(ps -eopid,command | egrep "[X]vnc.*-ac" | awk '{print $1}'); do
echo "kill -9 $i"
kill -9 $i
done
*** Bug 308981 has been marked as a duplicate of this bug. *** I've added Denis script to the hudson startup script on build. -M. As there are currently no stale vnc processes list I'm going to close this bug. -M. |