Cherry pick e9b64e0775f8211d989bd470f957287f6368470c (credits to stelcheck PR 39)
Maintenance feature: allow to force initial status by settings
Maintenance feature: if maintenance service is not checked
Maintenance feature: if maintenance service is not checked