This doesn't seem to work with the domain module. I have 2 domains defined in the domain module, and when I set the maintenance file only one of the domains recognizes it and enters into maintenance mode.