Define daemon skeleton