package.mk/wip/atop/atop-daily-bb.patch

19 lines
505 B
Diff

--- a/atop.daily 2019-01-12 23:37:19.000000000 +0100
+++ b/atop.daily 2019-09-21 14:30:57.905978235 +0200
@@ -30,13 +30,13 @@
# 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