fixed bug within default config
added logrotate config
fixed bug when not use daemon mode