https://bugzilla.wikimedia.org/show_bug.cgi?id=63878

--- Comment #2 from Tim Landscheidt <[email protected]> ---
Idea: Replace "qdel -j $job" with "ssh $WEBGRIDHOST 'kill -TERM $(cat
/var/run/lighttpd/wikilint.pid)'".  This will make lighttpd shut down in an
orderly fashion taking the php-cgi processes with it (and even offers a model
for graceful shutdowns with "kill -INT").

I asked on [email protected] (cf.
http://permalink.gmane.org/gmane.comp.clustering.opengridengine.user/7487) how
to find out the host a job is running on, but didn't get an "easy" answer
(yet).  Working:

| qstat -xml | xmllint --xpath
"substring-after(/job_info/queue_info/job_list[@state = 'running' and JB_name =
'lighttpd-wikilint']/queue_name/text(), '@')" -

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to