#!/bin/sh
# if uptime is less than an 3hrs delete old lock files that might be preventing jobs from starting
# uptime in hours
uptime='3';
if  [ $(echo $(awk '{print $1}' /proc/uptime) / 3600 | bc) -lt "$uptime" ]; then echo rm -f /var/tmp/pid.lock.*; echo 'PROBLEM: Machine rebooted Cleared up /var/tmp/pid.lock' | tee -a /root/do.log;  fi >/dev/null 2>&1
