In case of a production release, when the live sites have to be set up to display the “Maintenance mode” the below mentioned steps have to be followed.
1)Clear the dispatcher cache and fetch the maintenance page that has been created for your website.
rm -rf <path where the cache gets created>wget...