there a number of different ways you can run this through, about the most hardcore that could be justified is setting mpg321 as a shell for a dedicated user on one terminal, so when mpg321 quits, the login session ends and logs in again, pretty simple to do, but hopefully too drastic. a more rational solution would probably be to just turn the mpg321 command into an infinite loop where it already is:
Code:
while true; do mpg321 x y z; sleep 5; done
just put a small pause before it restarts to stop things potentially getting ugly.