The executable should take a --restart flag which sends a PUT request to the right place.
--restart
PUT