[launchd-dev] launchd.plist & SMJobBless
Jérome Laurens
jerome.laurens at u-bourgogne.fr
Fri Nov 4 03:41:21 PDT 2011
This is an answer to my own problem
I thought that SMJobBless was ignoring keys in the embedded launchd.plist.
That was a mistake.
In fact, I have been catched by the authorization tool that asks for a password to install something
whereas SMJobBless did not install anything without real evidence.
Thus all the keys that I added in the launchd.plist did not appear in the launch daemons plist
just because I did not increase the bundle version!
I understood that while reading the previous thread "Questions about SMJobBless" from eric gorr.
Cleaning everything by hand solved my problem.
Sorry for bothering you.
Jerome
Le 3 nov. 2011 à 12:54, Jérome Laurens a écrit :
> Hi list,
>
> I have problems in removing calls to AuthorizationExecuteWithPrivileges.
>
> So far I played with both SMJobBless and ssd (simple socket
> daemon) sample codes
> and I am happy with them separately.
> I also played successfully with unix sockets but now
> time has come to put everything altogether.
>
> For ssd, we have to install in /Library/LaunchDaemons a custom
> plist containing definitions of a Socket that will be used to launch the
> daemon on demand.
> For SMJobBless, we seem to have no hand on the plist, except for
> the Label key.
> Every other key seems to be ignored by SMJobBless.
>
> The question is:
> what is the recipe to tell launchd to launch a daemon installed
> through SMJobBless ?
>
> Thanks in advance
> &
> regards
>
> J. Laurens
> _______________________________________________
> launchd-dev mailing list
> launchd-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
>
More information about the launchd-dev
mailing list