[launchd-dev] Stopping and uninstalling a LaunchDaemon job

Quinn eskimo1 at apple.com
Wed Aug 27 08:15:55 PDT 2008


At 8:08 -0700 27/8/08, Shawn Erickson wrote:
>We have no issues using the rights we are granted to remove files
>owned by root, etc. but we cannot use launchctl to stop the
>LaunchDaemon because the uninstall task runs as the current user and
>not as root (aka doesn't see the top level launchd instance).

I'm confused.  To remove a file from /Library/LaunchDaemons you have 
to be running as root.  Why can't you sublaunch launchctl from that 
context?

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