Commit 7b2e4ecf authored by Robert Dietrich's avatar Robert Dietrich

fixed condition to make sure that collectd process gets killed

parent a8e3fb54
......@@ -22,7 +22,7 @@ else
# make sure collectd gets killed
COLLECTD_PID=`ps -eo pid,cmd | grep -v grep | grep "pika_collectd" | awk '{print $1}'`
if [ -z "$COLLECTD_PID" ]; then
if [ -n "$COLLECTD_PID" ]; then
echo "kill -KILL $COLLECTD_PID"
kill -KILL $COLLECTD_PID
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment