Implemented auto restart after config change

Auto restart the application after a config change that needs a restart