Adds option to restart processes

This PR adds an option to restart all processes after the post-commit commands were executed.