facebookresearch / fairo

A modular embodied agent architecture and platform for building embodied agents
MIT License
846 stars 88 forks source link

Kill Gripper Server #1407

Open AlexanderKhazatsky opened 1 year ago

AlexanderKhazatsky commented 1 year ago

In the same way that we can use pkill -9 to kill the robot server before launching a new one, it would be really helpful to do something similar with the gripper server. Im using a headless NUC and launch servers in a sub process, and when I try launching a new gripper server it fails because there's already an existing gripper server (which sometimes has broken down, but is still running).

Is there an equivalent terminal command to kill this gripper server?

Thank you as always!

exhaustin commented 1 year ago

pkill -9 gripper should also work for the gripper server. If it is a concern that you might accidentally kill other processes containing the string "gripper", you can view the processes by ps aux | grep gripper and either 1) terminate the exact gripper server process using kill -9 <gripper_server_pid> or find a more specific string for pkill (I imagine pkill -9 launch_gripper would work quite well)