[launchd-dev] Cause of "Service cannot load in requested session"?

Quinn "The Eskimo!" eskimo1 at apple.com
Thu Nov 5 00:40:57 PST 2015


On 5 Nov 2015, at 05:44, James Bucanek <subscriber at gloaming.com> wrote:

> I was really hoping that someone could tell me what error 134 means.

Error 134 means exactly what the string says, that is, the service couldn't be loaded in the requested session.  In this context "session" refers to the session type, that is, what you'd put into the LimitLoadToSessionType, so you're on the right track there.  Internally launchd has code that matches the requested session against the LimitLoadToSessionType value (or items in the array, if it's an array) [1] and raises this error if it doesn't find a match.

Alas, that's about all I know here; I have no idea /why/ just one of your users is seeing this problem.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

[1] It uses default values of "System" or "Aqua" depending on the context but, as you're specifying "Background" the default value shouldn't matter.


More information about the launchd-dev mailing list