add script for watching and auto-restarting the hook server