Generalized daemonization

add daemonizition to active chan ref