It would probably be useful to have a script running as a separate process on the same machine as the server to avoid needing manual restarts.