Use log and add pid configuration.