config: improve service check