Shouldn't "bool monitor" and monitor_ be a argument and a member to/of ServiceBase::init instead?