Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paths and Install Locations




On Aug 20, 2008, at 7:26 AM, Andrew White wrote:

Scenario:

I have a preference pane that is responsible for controlling how a couple of different services on the system run. The services use launchd to control them (and start them at boot time).

The preference pane will normally be installed in /Library/ PreferencePanes.

The daemon scripts will normally be installed in /Library/ LaunchDaemons.

Here's the question - where is the right place to install the posix tools / applications that those daemons run. I'd thought to put them in the PreferencePane bundle, but that means that the launchd scripts need to be able to find them at boot, and I'm not sure that I want to assume where the preference pane bundle is installed (in case the user moves it?).

Where is the correct place? And how do I make it easy for the user to uninstall my app - what happens to the launchd scripts if my apps are thrown into the trash?


Since these apps might (will?) run as root, I certainly don't want the scripts to pull some random app from the user's path.


Similarly, if I want to put the apps in a chroot jail, where do I put the root of this jail?

As you wrote, there are permission concerns here. /Library/ PreferencePanes is root:admin. So it's not the best place to put components that can be launched by a LaunchDaemons script.


A solution could be to put things in /Library/StartupItems without providing a StartupParameters.plist script. It's better than /L/ PreferencePanes since it's root:wheel.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Paths and Install Locations (From: Andrew White <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.