sd_notify ready status when accepting API requests

Fixes #2322 

This is a rebase of @stephenmw's work