add a function of linux daemon process