add a mini daemon example, which will try to work as a daemon