lib: Add daemon_status() to util library.