Searching for "restart" in apt turned up a few promising hits.
I haven't tried any of these myself.
A simple brute-force way is to run it in a loop.
while true; do command ; done
Any time the command terminates, for any reason, the loop will start it up again. The only way to get out of it is to crtl-c terminate the loop.