optimize daemonizer and add log and pid in config.ini