complete daemon example