manage daemonization