daemonization, io socket and file redirection