[PATCH 1/4] util: introduce shared daemon startup code