Turning off a site in multi-site/multi-environment config
The isSystemLive config setting isn't multi-site aware. It sets the entire Craft installation on or off, rather than per site, so you'll need to find a different method to disable domain2.com on the production server.

Untested, but you could try to set the baseUrl for domain2.com to an empty string on production and see if that works.