Prepare service file.