From 8f16a8c4987f822c24df30ce109ee1dcc6e41954 Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Wed, 6 Sep 2017 14:13:05 +0200 Subject: [PATCH] atop.daily: removed dependency from procps --- atop.daily | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atop.daily b/atop.daily index 32a94d87..c9c2d9c0 100755 --- a/atop.daily +++ b/atop.daily @@ -8,13 +8,13 @@ INTERVAL=600 # interval 10 minutes # verify if atop still runs for daily logging # -if [ -e $PIDFILE ] && ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null +if [ -e $PIDFILE ] && ps | grep `cat $PIDFILE` > /dev/null then kill -USR2 `cat $PIDFILE` # final sample and terminate CNT=0 - while ps -p `cat $PIDFILE` > /dev/null + while ps | grep `cat $PIDFILE` > /dev/null do let CNT+=1