Only build the config file when the service is enabled.