Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a script to be started at boot. Script was loaded into lauchd using launchctl load ...

Error I have in the logs:

Apr 17 14:02:07 win[158] (my.script[184]): Exited with exit code: 1

That script needs root privs to be able to function, and from what I read on interweb launchd gives root at the time of launch. Starting script after boot up manually works 100%

It exits with code 1, how do I find more info what exactly is wrong?

share|improve this question
Did you write that script yourself? If so, please post it. – Daniel Beck Apr 17 '11 at 18:22

launchd will run launch jobs in your personal folder using your own user privileges. It's only root in /Library/ and /System/Library.

See this related question.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.