It's possible to know how to configure a global service to determine if the maintenance mode is enabled or not. Because I don't found the way to do it. Thanks in advance