[launchd-dev] Install and load a launch daemon without a reboot

Quinn "The Eskimo!" eskimo1 at apple.com
Wed Jan 26 01:39:13 PST 2011


On 25 Jan 2011, at 23:10, Iceberg-Dev wrote:

> If so, then you need to require root/admin authentication in the installation package (to be able to install stuff in /Library/LaunchDaemons/.

One thing to be careful of is the distinction between EUID and RUID.  IIRC the Installer, when yo escalated privileges, only sets the EUID, leaving the RUID set to that of the user who ran the Installer.  This causes problem for launchctl, because launchctl uses the RUID to decide which launchd to talk to.  You can use the chroot trick from my previous post to set both the EUID and RUID to 0.

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




More information about the launchd-dev mailing list