My system daemons are not getting launched in MacOS 15x post reboot

When I install my application, it installs fine and everything works alongwith all the system level daemons but when I reboot the system, none of my daemons are getting launched and this happens only on MacOS 15x, on older version it is working fine. In the system logs, I see that my daemons have been detected as legacy daemons by backgroundtaskmanagementd with Disposition [enabled, allowed, visible, notified]

2025-01-13 21:17:04.919128+0530 0x60e      Default     0x0                  205    0    backgroundtaskmanagementd: [com.apple.backgroundtaskmanagement:main]                  Type: legacy daemon (0x10010)
2025-01-13 21:17:04.919128+0530 0x60e      Default     0x0                  205    0    backgroundtaskmanagementd: [com.apple.backgroundtaskmanagement:main]                 Flags: [ legacy ] (0x1)
2025-01-13 21:17:04.919129+0530 0x60e      Default     0x0                  205    0    backgroundtaskmanagementd: [com.apple.backgroundtaskmanagement:main]           Disposition: [enabled, allowed, visible, notified] (0xb)

But later, it backgroundtaskmanagementd decides to disallow it.

2025-01-13 21:17:05.013202+0530 0x32d      Default     0x4d6                89     0    smd: (BackgroundTaskManagement) [com.apple.backgroundtaskmanagement:main] getEffectiveDisposition: disposition=[enabled, disallowed, visible, notified], have LWCR=true
2025-01-13 21:17:05.013214+0530 0x32d      Error       0x0                  89     0    smd: [com.apple.xpc.smd:all] Legacy job is not allowed to launch: <private> status: 2

Is there anything changed in latest Mac OS which is causing this issue? Also what does this status 2 means. Can someone please help with this error?

The plist has <RunAtLoad> <KeepAlive> is true

How are you installing your daemon? By dropping a file in /Library/LaunchDaemons/? Or by calling an API, like SMAppService?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

All my daemons plist are in /Library/LaunchDaemons/

@DTS Engineer Could you please help?

My system daemons are not getting launched in MacOS 15x post reboot
 
 
Q