Refact Unix daemon.
Review update.
[#1391] Refactor Unix daemon.