2012-09-01 13:20:14 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
ISO_BUILD_LOCK=/tmp/.daily_iso_build.sh.lock
|
2012-09-16 11:08:21 +02:00
|
|
|
LOCK_TIMEOUT=$((3600 * 24)) # 24 hours
|
2012-09-01 13:48:26 +02:00
|
|
|
|
|
|
|
kill_stale_process() {
|
2012-09-05 09:11:07 +02:00
|
|
|
echo "[kill] NOT killing stale processes automatically: " >&2
|
|
|
|
local pids=$(lsof "${ISO_BUILD_LOCK}" | tail -n +2 | awk '{ print $2 }')
|
|
|
|
echo ${pids} >&2
|
|
|
|
#for pid in ${pids}; do
|
|
|
|
# kill -TERM ${pid}
|
|
|
|
#done
|
2012-09-09 18:45:21 +02:00
|
|
|
return 1
|
2012-09-01 13:48:26 +02:00
|
|
|
}
|