refactor syslog daemon