Add deamon main.

Signed-off-by: snowwalf <zhj88523@126.com>