[rt-users] Quick and dirty Maintenance Mode

Joe Casadonte joe.casadonte at oracle.com
Wed Mar 7 21:58:52 EST 2007


Here's a quick and dirty Maintenance Mode. If you need to take the site 
down for any length of time (to back up the database, for example) this 
lets you block access to the site without needing to bring the site down 
or clear out the Mason cache. And it's as simple to unblock the site, too.

When the new code is in place, you can place the site into maintenance 
mode simply by creating a file called ".maintenance" in the root of the 
RT install:

# touch /opt/rt3/.maintenance

and taking it out of maintenance mode is as simple as removing the file:

# rm /opt/rt3/.maintenance

The effect is instantaneous in both cases.

See the wiki page for more details:

   http://wiki.bestpractical.com/index.cgi?MaintenanceMode

Enjoy!

-- 
Regards,


joe
Joe Casadonte
joe.casadonte at oracle.com

==========                                                  ==========
== The statements and opinions expressed here are my own and do not ==
== necessarily represent those of Oracle Corporation.               ==
==========                                                  ==========



More information about the rt-users mailing list