minimizing nginx restart by checking for configuration change.