Re: Paths and Install Locations
Re: Paths and Install Locations
- Subject: Re: Paths and Install Locations
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 21 Aug 2008 15:21:08 +0200
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:
This email sent to email@hidden