Add daemon function to start daemon simply.

I will be switched daemon process or normal process with argument.