Get daemon status programmatically on macOS using Qt

167 Views Asked by At

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.

0

There are 0 best solutions below