Permalink
Browse files

A few minor improvements to warninglight

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 28, 2018
1 parent 908dd1b commit 39335dded29f8b32ad6f0737aed3706bdde07137
Showing with 5 additions and 0 deletions.
  1. +5 −0 fixes.sh
@@ -190,9 +190,14 @@ check process 9590 with pidfile /run/9590.pid
# Clean up log errors from early build of nems-tools
if grep -q "PHP Warning" /var/log/nems/nems-tools/warninglight; then
/bin/sed -i~ '/PHP Warning/d' /var/log/nems/nems-tools/warninglight
restartwarninglight=1
fi
if grep -q "PHP Notice" /var/log/nems/nems-tools/warninglight; then
/bin/sed -i~ '/PHP Notice/d' /var/log/nems/nems-tools/warninglight
restartwarninglight=1
fi
if (( $restartwarninglight == 1 )); then
kill `cat /var/run/warninglight.pid` && /root/nems/nems-tools/warninglight >> /var/log/nems/nems-tools/warninglight 2>&1 &
fi
fi

0 comments on commit 39335dd

Please sign in to comment.