write deamon

Signed-off-by: coderwood <coderwood@hotmail.com>