Auto reload of joystick in SITL

Hello everyone, I use MAVProxy to operate the joystick with sitl, can you tell me how to make the joystick reconnect automatically if it turns off during operation?