Boiler plate C daemon tempalte