forked from Archive/PX4-Autopilot
sitl_run.sh: use ps instead of jps (#5376)
The tool jps does not seem to be available on macos Java.
This commit is contained in:
parent
0127f4017a
commit
14ed65f0e4
|
@ -44,7 +44,7 @@ fi
|
|||
# be running from last time
|
||||
pkill gazebo
|
||||
pkill px4
|
||||
jmavsim_pid=`jps | grep Simulator | cut -d" " -f1`
|
||||
jmavsim_pid=`ps aux | grep java | grep Simulator | cut -d" " -f1`
|
||||
if [ -n "$jmavsim_pid" ]
|
||||
then
|
||||
kill $jmavsim_pid
|
||||
|
|
Loading…
Reference in New Issue