summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/bin/checkreload.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/usr/local/bin/checkreload.sh b/usr/local/bin/checkreload.sh
deleted file mode 100755
index b1c1723..0000000
--- a/usr/local/bin/checkreload.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-CHECKRELOADSTATUS=`pgrep check_reload_status | wc -l`
-DATE=`date +%m-%d-%Y_at_%H%M%S`
-OUTFILE=/root/check_reload_status.log
-
-if [ ${CHECKRELOADSTATUS} -lt 1 ] ; then
- echo "${DATE}: Re-starting check_reload_status, it died for some reason..." >> ${OUTFILE}
- nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status &
-fi
-
-if [ ${CHECKRELOADSTATUS} -gt 1 ] ; then
- echo "${DATE} There appears to be 2 or more check_reload_status processes. Forcing kill and restart of all now..." >> ${OUTFILE}
- kill -9 `pgrep check_reload_status`
- nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status &
-fi
OpenPOWER on IntegriCloud