modified daemonProcess ,add process type