Add config file guard to service