Questions tagged [launchd]

Launchd is a process management daemon, similar to "init". It is commonly used on Darwin-based systems.

640 questions
107
votes
9 answers

What's a clean way to stop mongod on Mac OS X?

i'm running mongo 1.8.2 and trying to see how to cleanly shut it down on Mac. on our ubuntu servers i can shutdown mongo cleanly from the mongo shell with: > use admin > db.shutdownServer() but on my Mac, it does not kill the mongod process. the…
emilebaizel
  • 4,505
  • 5
  • 27
  • 20
53
votes
10 answers

what does launchd status 78 mean?? why my user agent not running??

I want to run a unison sync service running in the background whenever I login. But the status code of my agent is 78. I don't know why, I tried some fix posted online, but it just doesn't work. What's the problem?? below is the plist file for my…
Aaron Shen
  • 8,124
  • 10
  • 44
  • 86
48
votes
10 answers

Missing certificates and keys in the keychain while using Jenkins/Hudson as Continuous Integration for iOS and Mac development

I'm trying to improve Hudson CI for iOS and start Hudson as soon as system starts up. To do this I'm using the following launchd script:
Dmytro
  • 2,522
  • 5
  • 27
  • 36
43
votes
6 answers

jenkins on Mac, PATH is not set right, no /usr/local/bin

I recently installed Jenkins, using Homebrew. I also installed Mercurial using Homebrew. I can successfully clone an hg repo just fine - from Terminal. But if I try and do the same thing as part of a job in Jenkins, it fails. So, in by job, I told…
Dan Morrow
  • 4,433
  • 2
  • 31
  • 45
42
votes
3 answers

Scheduling a terminal command or script file to run daily at a specific time Mac OS X

I want to have my computer set its volume to a specific level every night at 11:45 PM. I'm running OSX 10.11.4. I can set the volume manually through terminal with osascript -e "set Volume 1.7" or as a script with set volume 1.7 I want it to be…
Naboo
  • 421
  • 1
  • 4
  • 4
40
votes
3 answers

Can't make postgresql load at startup in Mac OS

I have installed postgresql via HomeBrew. It worked but today I find that postgresql server does not run when computer start. I try to use launchctl to load it again with below command: $ launchctl load…
Minh Ha Pham
  • 2,566
  • 2
  • 28
  • 43
38
votes
6 answers

How can I debug a Launchd script that doesn't run on startup?

I have some launchd scripts from Homebrew. However I have to manually run them when I restart my computer: launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
dd.
  • 922
  • 1
  • 7
  • 17
37
votes
3 answers

How to limit memory of a OS X program? ulimit -v neither -m are working

My programs run out of memory like half of the time I run them. Under Linux I can set a hard limit to the available memory using ulimit -v mem-in-kbytes. Actually, I use ulimit -S -v mem-in-kbytes, so I get a proper memory allocation problem in the…
hectorpal
  • 711
  • 2
  • 6
  • 15
36
votes
3 answers

VERY simple Launchd plist not running my script

I'm trying to figure out why my launchd script is not working. It is extremely simple, but I am new to the mac environment and trying to get accustomed. Here's my plist. I know ProgramArguments is required, so I just put the script path in…
Oliver
34
votes
8 answers

How to know a specific launchd .plist file location?

Is it possible to know the .plist file location which is loaded by the launchctl command? The label name is listed with launchctl list and its contents can be viewed by launchctl list LABEL, but I cannot find the .plist file location. I know it will…
Kurosawa Hiroyuki
  • 1,217
  • 2
  • 14
  • 22
27
votes
1 answer

How to check if launchd has started the script?

I configured the launchd to start a command at 18pm every day on my mac pro,but it was not working. I want to check if the launchd has run the command. I tried the system console, found no anything valuable. my mac os version is mac os x 10.8.3 My…
hywl51
  • 551
  • 1
  • 5
  • 13
24
votes
1 answer

Cannot access keychain item after SMJobBless update

We have a problem with updating a helper tool with SMJobBless that has been puzzling us for days now. We are developing an application for which at some point we need to perform administrative tasks (loading/unloading a kext). We are also using the…
AvD
  • 271
  • 1
  • 5
20
votes
3 answers

Bash – How should I idle until I get a signal?

I have a script for launchd to run that starts a server, then tells it to exit gracefully when launchd kills it off (which should be at shutdown). My question: what is the appropriate, idiomatic way to tell the script to idle until it gets the…
Thom Smith
  • 13,916
  • 6
  • 45
  • 91
18
votes
3 answers

Unable to sign iOS builds with Jenkins

Our Jenkins CI build server is set up on a Mac Mini running OSX Lion (10.7.3), and I'm having trouble getting it to sign the iOS builds so they can be uploaded to to TestFlight. The process is running as a normal user named jenkins, and it's started…
Anthony F
  • 6,096
  • 4
  • 31
  • 32
17
votes
3 answers

What's the difference between 'Day' and 'Weekday' in launchd StartCalendarInterval?

I'm working with launchd to run some automated tasks, and I was wondering what the difference is between 'Day' and 'Weekday'. According to http://discussions.apple.com/thread.jspa?threadID=1361809 there is a 'subtle' difference that can cause…
Joshua Kunzmann
  • 930
  • 1
  • 8
  • 10
1
2 3
42 43