Commits

Kevin Chan committed 06f2d7f

Updated logcheck regex pattern.

Comments (0)

Files changed (1)

 # caused by multiple logchecks running concurrently.
 #
 # * created: 2012-12-25 Kevin Chan <kefin@makedostudio.com>
-# * updated: 2012-12-25 kchan
+# * updated: 2013-07-14 kchan
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:$PATH
 
 [ -x "$LOGCHECK" ] || exit 1
 
 
-GREP="grep"
+GREP="egrep"
 SED="sed"
 AWK="awk"
-LOGCHECK_PAT="if.*/usr/sbin/logcheck.*then nice.*/usr/sbin/logcheck;.*fi"
-
+LOGCHECK_PAT="(if.*/usr/sbin/logcheck.*then nice.*/usr/sbin/logcheck;.*fi)|(/bin/sh.*-c.*RUN_LOGCHECK)"
 
 is_integer()
 {