Added the ability to configure extra startup and shutdown commands.