diff options
-rwxr-xr-x | usr/local/bin/checkreload.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/bin/checkreload.sh b/usr/local/bin/checkreload.sh index 40bde37..8ab3464 100755 --- a/usr/local/bin/checkreload.sh +++ b/usr/local/bin/checkreload.sh @@ -6,11 +6,11 @@ OUTFILE=/root/check_reload_status.log if [ ${CHECKRELOADSTATUS} -lt 1 ] ; then echo "${DATE}: Re-starting check_reload_status, it died for some reason..." >> ${OUTFILE} - /usr/local/sbin/check_reload_status + 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` - /usr/local/sbin/check_reload_status + nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status & fi |