A system for starting, stopping, and managing automated processes.

learn more… | top users | synonyms (2)

1
vote
1answer
56 views

What is managing nfsd on OS X?

I have two questions regarding nfsd on OS X: What is managing the start/stop phase of this daemon? Launchd? It has an enable and disable mode, but I don't know what does this do. What is the default ...
0
votes
2answers
20 views

Is it possible to change the SSH_AUTH_SOCK path?

I would like to have the ssh-agent socket inside my home directory, but currently it is created inside /private/tmp. I see that the agent is managed though launchctl and this plist: ...
0
votes
1answer
38 views

Mac OSX : How to protect daemon process from stopping by root/admin

I've a security daemon which performs many security related tasks. Daemon plist is part of /Library/LaunchDaemon/com.xyz.securityservice.plist also KeepAlive flag is 1. The daemon I've currently can ...
0
votes
0answers
35 views

caffeinate with launchd Doesn't Work when I Close My Laptop's Lid

I have a launchd task that periodically initiates a time machine network backup. I've had problems with corrupted sparse bundle disk images, which I've assumed is due to the either the computer ...
1
vote
0answers
20 views

LaunchDaemons Starting Before IP Addresses Have Been Assigned

I’m working on an annoying problem with my Mac mini (running OS X 10.9). I have postfix and pfctl scheduled to load as system daemons using launchd, and they do so successfully. However, they do so ...
0
votes
1answer
21 views

Turning Off Wi-Fi During Logout Script Doesn't Work With Launchd

I'm writing a launchd plist and a shell script on my MacBook running Yosemite to automate the following scenario: Turning off Wi-Fi when the user logs out. Here's my script: #!/bin/sh onLogout() { ...
2
votes
2answers
57 views

Launchd to only run on schedule, not restart?

I have a script that I want to set for 3:30am daily and it does run at the set time but it also runs on every restart of the computer which I do not want. How do I make this work with just the ...
1
vote
0answers
72 views

softwareupdated using 350MB+ of memory, is this a problem? How can I get it to use less?

I'm running Yosemite with the latest updates. softwareupdated is using approximately 380MB of memory. That seems quite high to me. Is that normal? Is that indicative of a problem? Does ...
1
vote
2answers
86 views

Assistive Access when script is launched by agent

Problem Applescript run by osascript is not allowed Assistive Access when launched by agent (~/Library/LaunchAgents). Although it works when run from Applescript editor or commandline directly (using ...
0
votes
0answers
115 views

Course of action to clean up RAM on sluggish mac

Below is an EtreCheck report on my system. My problem is that I have <3 GB or 2.5 GB even after a reboot, with relatively few menu bar applications starting up. (This drops to 20-300 MB once Chrome ...
1
vote
1answer
45 views

Is this launchd plist broken or is it just me?

I was reading a post about using Bittorrent Sync on OS X that includes a launchd plist that's supposed to keep the app running in the event that it crashes. It doesn't seem to work, though, since I've ...
0
votes
0answers
27 views

Postfix mail not working from launchctl script

I have setup postfix on my Mac so I can send emails from scripts, such as echo "tests worked" | mail -s "Tests" me@mymail.org Running this from the command line works as expected. Also if I run a ...
1
vote
0answers
38 views

How do I disable a launchd service I no longer have the plist for?

I delete an app that had some service running through launchd. Now launchd complains all the time in the console for not being able to launch the service: 19/02/15 08:50:28,589 ...
1
vote
0answers
57 views

Launchctl does not load service on boot

I installed mysql via homebrew in osX 10.10. It comes with plist file located in /usr/local/opt/mysql/homebrew.mxcl.mysql.plist. The contents: <?xml version="1.0" encoding="UTF-8"?> ...
0
votes
1answer
149 views

Spotlight fails to load after Time Machine restore - crashes continuously

Problem description: After having made the mistake of running a Unix command that altered more files than I intended and possibly damaged the file system, I decided to restore to a previous state with ...
1
vote
0answers
25 views

launchd notification on abnormal exit

I have a launchd job plist that runs a simple shell script that invokes rdiff-backup to backup a remote directory over SSH to my computer. The job runs every hour and it works well. Except the other ...
0
votes
0answers
50 views

Application will not launch after crash or force quit

I have an App (Transmission) which won't launch after it hangs and I force quit. It won't launch from the Dock or applications folder. A reboot will resolve the problem but I have another long ...
0
votes
1answer
25 views

How to restart a process without user interaction

I killed a process (a simple .jar running in the background as a global agent) by pkill -9 java. Since the global agent in launchd is configured as keepAlive the process gets restarted immediately. ...
-1
votes
1answer
150 views

Shutdown from launchd script no longer works in Yosemite

I'm new to this forum; please excuse any faux pas. I've been using rsync fired by a LaunchDaemon written in tcsh for several years now. It worked great on my 2008 MacBook Pro under Snow Leopard. I now ...
3
votes
0answers
182 views

Set launchd log level

How can I set the log level of launchd in MacOS Yosemite? I've tried launchctl log level debug but it doesn't work.
1
vote
1answer
50 views

How to manually control processes launched on start?

Every time my Mac starts, about ~210 processes are launched, requiring about ~1000 OS Threads. With every Apple update this number increases. My laptop freezes for 1-3 min a couple of times per week ...
0
votes
0answers
145 views

Unable to Open /var/db/BootCaches/PreheatedUser/Merged.playlist

Running Mavericks and Disc Utility and fsck report no errors. Safe Boot reports Unable to open /var/db/BootCaches/PreheatedUser/Merged.playlist. Found a tutorial (or three) recommending to enter ...
0
votes
2answers
38 views

How can I write a launchd service that will actually stop the service?

So I have a plist to keep monit running: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> ...
0
votes
3answers
349 views

Why won't kern.maxfiles setting in /etc/sysctl.conf stick?

I've been getting various "too many files open in system"-type errors on Yosemite (10.10.1). Searching around suggests setting kern.maxfiles and kern.maxfilesperprocess in /etc/sysctl.conf. I've ...
0
votes
0answers
70 views

Mac OS X launchd: forbid starting a process in Power Nap (dark wake)?

What would be the best way to forbid Mac OS 10.10+ Launchd to start a Bash script when a MacBook is in Power Nap (dark wake)? Is there an elegant way to limit it only to "real wake", like: ...
1
vote
0answers
21 views

Restarting syslog causes it to no longer listen on domain socket

Standard syslog setup on Mavericks. 1. Before stopping and starting syslog: $ lsof | grep syslog launchd 1 root 6u unix 0xec11da089f2493d9 0t0 ...
0
votes
0answers
82 views

Using SSHFS with launchd

I have a Raspberry Pi I want to automount on my Desktop (Yosemite 10.10.1). I've installed OSXFuse (with the MacFuse option) and SSHFS both from https://osxfuse.github.io/. I'm using the password ...
0
votes
1answer
157 views

What is the difference between a `service-name` and a `service-target`?

Consider the following commands # launchctl stop Usage: launchctl stop <service-name> # launchctl stop com.apple.SomeService # launchctl disable com.apple.SomeService Usage: launchctl disable ...
1
vote
1answer
283 views

Disable citrix receiver startup on login

I have installed citrix receiver on my home macbook. It auto starts on login yet it does not show an entry in the Login Items tab under the Users and Groups pane of System Preferences. How can I ...
1
vote
1answer
119 views

dnsextd messages in console

I'm running OS X 10.10.1 and keep getting thousands of lines like the following in the system console log. 12/16/14 2:57:02.937 PM dnsextd[9384]: ConnectToServer - 10 failed attempts. Aborting. ...
1
vote
1answer
29 views

Launchd to terminate what it starts

I have a launchd plist that uses StartCalendarInterval to start my python script at the desired time and day of the week. Now I want to create a launchd plist that both starts and terminates a ...
3
votes
2answers
840 views

How do I associate a launchd 2 plist with its domain and service targets?

What exactly are these "domain" and "service targets" and how do I associate them with plists for use by launchd? OS X 10.10 introduces a new launchctl API for managing LaunchDaemons and launching ...
0
votes
0answers
71 views

mount encrypted sparseimage as home directory before login

There are several ways (loginhook, launchdaemon etc.) to automount a sparsebundle before logging in, but there's none without writing down the password in plaintext for automount an encrypted ...
2
votes
1answer
53 views

Is /etc/resolv.conf changed every time my DHCP lease changes?

I'd like to fire an event via launchd whenever my DHCP lease changes the IP on my WiFi interface. My question is similar to what's being asked in this question, which makes me thing I can watch ...
0
votes
0answers
154 views

Yosemite: launchd scheduled jobs do not run

Since upgrading to Yosemite, all my launchd scheduled jobs do not run on their specific time set. The system log does not have any launchd related logs that can hint what the problem is. A sample ...
0
votes
1answer
26 views

Print from launchd task

I have a script that needs to be running in the background periodically (I've put it there with Lingon X). That script (PHP based) is 1. polling a server, 2. retrieving a PDF file from the server 3. ...
0
votes
1answer
45 views

How to associate a route with an interface?

I have a Mac with two network interfaces, connected to different networks. For the sake of argument, let's say one is connected to a private network and the other to the Internet. I understand that ...
1
vote
1answer
388 views

Setting environment variable for sudo in Yosemite

I followed this similar question to set my environment variables in Yosemite: ...
3
votes
0answers
236 views

launchd StartCalendarInterval not working reliably

I have several tasks that I run from launchd using StartCalendar interval. Under Yosemite these do not necessarily run. (Under Mavericks and earlier they did run) How do I see what launchd is doing ...
0
votes
1answer
188 views

Setting environment variables for scripts run by launchd?

I have a script that worked in the past, but seems to be having issues now (I believe it's due to Yosemite). What I had done was created an environment variable that was set to "false" and then my ...
0
votes
2answers
1k views

How do you start and stop the Spotlight server in Yosemite?

There are many forums answering this question for previous versions of MAC OSX, but 10.10 doesn't seem to have the service 'com.apple.metadata.mds.plist' in /System/Library/LaunchDaemons. It has 3 ...
3
votes
2answers
827 views

What is causing launchd to burn my CPU?

I'm running Yosemite, a clean install. launchd continuously runs at 100% CPU. Since the Yosemite upgrade I can't change the log level with 'sudo launchctl log level debug' Checking top or Activity ...
1
vote
0answers
82 views

How launchd StartInterval behaves after long sleep?

I have a 21,600secs (4hours) job using launchd.plist. I have 2 mac, main and sub. With main mac, my plist works fine. But with sub mac, which is wakes up 3~4 times per week, my plist does not seems ...
3
votes
1answer
258 views

Start Apache httpd on boot

Since upgrading to Yosemite, Apache httpd is no longer started at boot time. I've tried: sudo launchctl load org.apache.httpd.plist but I'm getting a service is disabled error. I've modified the ...
10
votes
2answers
12k views

In OSX Yosemite, why can I set many environment variables for GUI apps, but cannot set the specific variable PATH

After I had sorted out OSX' PATH issues up to the Mavericks release, the problems come back in Yosemite!!! So I want to mimic the old launch.conf feature in the new Mac OSX 10.10 Yosemite release, ...
0
votes
2answers
404 views

Launchd unloading LaunchDaemon

I have a script scheduled to run as LaunchDaemon. Script runs fine when launched manually through terminal. I have two commands sudo launchctl unload -F /Library/LaunchDaemons/com.test.plist sudo ...
0
votes
0answers
26 views

Why won't my drush script run as a Launch Daemon?

On the command line I successfully run this: /usr/bin/php /usr/local/opt/drush/libexec/drush.php '@hostmaster' hosting-dispatch or even: drush '@hostmaster' hosting-dispatch and ...
1
vote
0answers
32 views

Run script (a la LaunchDaemon) before automatic app resume kicks in

I have an encrypted disk image that I use to store some sensitive data. It also includes a license key file for an application. Upon boot, I automatically mount this disk which restores the ...
1
vote
1answer
171 views

coreaudiod and launchd are taking up 80% and 40% processor respectively

I've just upgraded from mavericks to yosemite, the download was sluggish but eventually worked so I don't think any of the files were corrupted. There was no hitch with the installation as far as I ...
4
votes
1answer
7k views

Yosemite com.apple.xpc.launchd error every 10 seconds

Every 10 seconds i get this error in my console: 20/10/14 19:35:56,840 com.apple.xpc.launchd[1]: (com.viber.osx[9850]) Could not find and/or execute program specified by service: 45: Operation not ...