added sample daemon init