Make generic daemon wrapper