I need to query my daemon status from system tray application using Qt. Can't find any solution to do that.
For the Windows part I can use Win32 API: OpenSCManager -> OpenService -> QueryServiceStatus/QueryServiceStatusEx. Need the way to do the same for Mac.
The daemon's plist located in LaunchAgents, loaded with launchctl load.