Added pause, resume and restart support to reactive scripts. Restart useful for scripts running as service