First part for daemonization using netcat