aboutsummaryrefslogtreecommitdiffstats
path: root/main/atop/atop-daily-bb.patch
blob: d6a90ae9cb43f3e148e435fe21c6c4a9f096e319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- 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