Adding API to damonize a process.