We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06be32d commit 425916cCopy full SHA for 425916c
openwisp-monitoring/files/monitoring.agent
@@ -109,7 +109,7 @@ save_data() {
109
-p daemon.info
110
fi
111
# get process id of the process sending data
112
- pid=$(pgrep -f "openwisp-monitoring.*--mode send")
+ pid=$(pgrep -P 1 -f "openwisp-monitoring.*--mode send")
113
kill -SIGUSR1 "$pid"
114
sleep "$INTERVAL"
115
done
@@ -210,7 +210,7 @@ send_data() {
210
-t openwisp-monitoring \
211
-p daemon.err
212
# get process id of the process collecting data
213
- pid=$(pgrep -f "openwisp-monitoring.*--mode collect")
+ pid=$(pgrep -P 1 -f "openwisp-monitoring.*--mode collect")
214
kill -SIGKILL "$pid"
215
exit 2
216
0 commit comments