Skip to content

Commit 02d7f33

Browse files
committed
fix ps redirection syntax according to Henri comment
1 parent 551f2bb commit 02d7f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jmxtrans.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ stop() {
8484
kill -15 "$PID"
8585
echo -n "Stopping jmxtrans"
8686
while (true); do
87-
ps -p $PID 2>&1 > /dev/null
87+
ps -p $PID > /dev/null 2>&1
8888
if [ $? -eq 0 ]; then
8989
echo -n "."
9090
sleep 1

0 commit comments

Comments
 (0)