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: SystemStarteup Items



I'm assuming this is a script you wrote.

Does your service need to run as a different user?

If so do this removin:

su your_unix_user -c your_command

or this if you have a home dir for the unix_user and need set some env vars from bash_profile

su - your_unix_user -c your_command



Also,

In your StartupParameters.plist do you have values for the "Requires" key?
If so it won't start if those services are not available at the time you script runs.


If so I have found changing the "Preference" key/value to "Last" to work for me.


Example: { Description = "MyService server"; Provides = ("MyService"); Requires = ("Resolver","Disks"); Preference = "Last"; Messages = { start = "Starting MyService"; stop = "Stopping MyService"; }; }


--Brad

On Nov 30, 2005, at 2:14 AM, client-management- email@hidden wrote:

Is the script marked as executable?

On 29/11/2005, at 12:19 PM, Jose Luis Paredes wrote:

I have a script that I need to run as a certain user at boot time.
The script does work using

%sudo -u user myscript

However if I run the script at boot time -my creating an entry in
the /Library/Startup items I get a permissions error in my system log.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to 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.