molecules/scripts/iso_build.include
2012-09-05 09:13:16 +02:00

15 lines
363 B
Bash

#!/bin/sh
ISO_BUILD_LOCK=/tmp/.daily_iso_build.sh.lock
LOCK_TIMEOUT=$((3600 * 12)) # 12 hours
kill_stale_process() {
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
return 0
}