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

learn more… | top users | synonyms (2)

9
votes
0answers
777 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.
2
votes
0answers
973 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 ...
2
votes
0answers
149 views

How daylight saving changes are handled in launchd to make sure it execute the the jobs as scheduled through plist?

Since August 2013, I am using Mac Mini with OS X version 10.8.2 as my web server (MAMP stack). I have a few launchd scheduled jobs scheduled through plist. Everything was working fine until Nov 3, ...
2
votes
0answers
41 views

How can I shut down an unlisted php-fpm?

I have two installations of php on my machine. One came with apache and is a 5.3 version, and I'm trying to use a 5.4 version with nginx. I'd like to work on project using nginx, but I can't figure ...
2
votes
0answers
919 views

How can I delay loading of a launchd Launch Daemon on boot?

I am running OS X Server 10.7.5 on a Mac Mini and I cannot get MacPorts’ Apache2 to start on boot. I have ensured that the Apple-supplied version of Apache is not launching and I have also ensured ...
2
votes
0answers
321 views

Filter launchctl standard err/out to add timestamp to log messages

I have a Launch Daemon running, happily logging to a couple of files specified using the Standard(Error|Out)Path entries in the property list file. Now, the problem is that the particular program ...
2
votes
0answers
413 views

Launch agents not lauching at system startup

I have several plist files in the folder ~/Library/LaunchAgents. They all have the same permissions but two of them (dotjs and pow) are not launching at login, even if they have the key RunAtLoad set ...
1
vote
0answers
28 views

How to run AppleScript (.scpt) as LaucnDaemon by root

I have an AppleScript or set of Applescripts that I am trying to run as a LaunchDaemon. I have no problem running the LaunchDaemon with my user. The problem comes in where I have the need to read a ...
1
vote
0answers
29 views

Applescript exits with error when run via launchd

I have an applescript running beautifully in Script Editor as well as from an osascript command at the Terminal. The script talks to the Reminders.app in order to pass iCloud reminder entries to a few ...
1
vote
0answers
54 views

Automator and Launchd: OSStatus error -10810

I have a number of automator script scheduled in launchd. All the scripts work fine and execute the workflow as expected. These are simple workflows that execute some finder actions and shell ...
1
vote
0answers
107 views

Kernel panic related to DirtyJetsamMemoryLimit?

I've been having random crashes (freezes or kernel panics requiring hard reboots) but I can't seem to pin down the cause. Looking in Console.app on restart, the only common factor seems to be related ...
1
vote
0answers
75 views

launchd using 100% CPU for 20 seconds once per minute

I'm trying to track down a problem with launchd on OS X 10.9.5. Once every minute, launchd spikes to 100% cpu for about 20 second or so, then goes back to minimal cpu usage. So thats ~20 seconds at ...
1
vote
0answers
32 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 ...
1
vote
0answers
234 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
119 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"?> ...
1
vote
0answers
46 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 ...
1
vote
0answers
161 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 ...
1
vote
0answers
319 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 ...
1
vote
0answers
84 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 ...
1
vote
0answers
134 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 ...
1
vote
0answers
50 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
0answers
100 views

Adding comments to /etc/launchd.conf

Since I migrate to Maverick, I cannot add comments anymore to entries in /etc/launchd.conf, like: # setenv VAR VALUE Is there a new format for adding comments there ? When I restart launchctl ...
1
vote
0answers
40 views

What happens if a launchd process starts again before finishing

I'm looking to create a backup script that uses rsync to move pictures, but I'm curious what would happen if the rsync process takes longer than the time between launchd triggers? Will it recognize ...
1
vote
0answers
254 views

launchd crowds syslog with error-messages

I'm running Mountain Lion 10.8.3 and have some problem with repeated error-messages crowding the /var/log/system.log file. Apr 19 15:15:14 pc49 com.apple.launchd[1]: * process 1 exceeded ...
1
vote
0answers
408 views

Where's launchd.conf gone in Mountain Lion?

Or is this page outdated? As man launchd.conf still shows the man file as before.
1
vote
0answers
243 views

Guide on removing unused Agents and Daemons to speed up MacOS

Can you point me to a good guide on spotting and getting rid of running Agents, Daemons and Processes that aren't useful to me anyway and are taking up memory and CPU cycles?
0
votes
0answers
24 views

Path not allowed in target domain, and ASL module X claims selected messages

I'm troubleshooting a fairly new MacBook Air that periodically refuses to let the user log into it (spinning beach ball at the login screen, sometimes restarted lets her log in, usually works fine if ...
0
votes
0answers
14 views

Does man launchd.plist OnDemand and KeepAlive give incorrect infos?

as I understood from the following Apple's guide Creating Launch Daemons and Agents, OS X's daemons managed by launchd are by default launched on-demand, therefore when there is an incoming request to ...
0
votes
0answers
30 views

OpenVPN causes loss of WAN connection after returning from sleep

I'm trying to use OpenVPN to have a constant VPN connection on my 10.10.4 install. Currently I've setup OpenVPN via homebrew and as stated put an openvpn.conf in /etc/openvpn as the default profile ...
0
votes
0answers
31 views

Set the WorkingDirectory to user's home in launchd?

I understand that you can change a LaunchAgent's working directory with a WorkingDirectory key, but is there any way to set the Working Directory to a user's home directory reliably and portably ...
0
votes
0answers
11 views

Wi-Fi stops working when I launch OpenVPN server

I have an OpenVPN server running on my device. I downloaded OpenVPN from homebrew and it has a plist to load with launchctl. However, if I try launching the server with launchctl start ...
0
votes
0answers
54 views

Stealthy Mac, Disabling network services on OS X (Non-Server)

I have written a bash script to harden OS X Security and be as stealthy as possible. The script: Disable bonjour Start firewall and block all non-essentials incoming traffic Enable Stealth Mode to ...
0
votes
0answers
34 views

launchagent logs warning/error into console

I have a launch agent that I created several years ago to set a random signature both in a .signature and in Mail.app. It does nothing complicated and has hummed along through several OS X versions. ...
0
votes
0answers
39 views

Can't get launchd task to run

I've done this once and I'm trying to do it on a new computer and I can't see what I'm doing wrong. I have a ruby script in my user folder named forecast.rb. I have set it to executable (a+x). It ...
0
votes
0answers
128 views

rsync error: connection unexpectedly closed

I'm trying to backup some folders on an ubuntu server to an external G-Drive, connected through thunderbolt to my iMac, in this manner: $ time nohup sh -c 'rsync -avz myuser@myserver:/home/user/ ...
0
votes
0answers
24 views

App Name not Displayed Correctly

I've created an AppleScript, saved it as an app and run it by launchd. For an undetermined reason, the app's name in Preferences > Security & Privacy > Privacy is displayed with a long string of ...
0
votes
0answers
34 views

How to create automatic launchd job that sets the Ruby version to use

I'd like to run a ruby script automatically once or twice a day on my MacBook running OS X Yosemite. Problem is that I currently have three versions of Ruby on my system including 1.8.7 and 2.2.1, ...
0
votes
0answers
23 views

Looking for org.macports.smartd.plist from macport's smartmontools

I compiled smartmontools myself, and it is working flawlessly. What I miss is a LaunchDaemon script to run smartd in the background. When you install smartmontools via. macports, you will get a ...
0
votes
0answers
67 views

Settings for CalendarAgent, Mingler and iCalExternalSync services

I have the dreaded issue with recurring sync service processes wreaking havoc on my MacBook Pro with O S X 10.9 Mavericks and stealing my CPU cycles for no apparent good reason. Usually with a 3 month ...
0
votes
0answers
99 views

New stats file created every 20 seconds in /var/log/com.apple.launchd.peruser.94?

My machine consumes all CPU for one or two hours processing some systemstats. So far I work around that by regularly cleaning the huge amount of data in /private/var/db/systemstats/ Now I noticed, ...
0
votes
0answers
10 views

launchd fails loading storagekitd

I do observe the following com.apple.xpc.launchd[1]: (com.apple.storagekitd) Service only ran for 2 seconds. Pushing respawn out by 8 seconds. What is storagekitd? How can I find out who's trying ...
0
votes
0answers
801 views

Yosemite com.apple.xpc.launchd[1]: (com.apple.cloudpaird) is running every 10 seconds

I am getting this message that repeats every 10 seconds on my Mac in Console: "com.apple.xpc.launchd[1]: (com.apple.cloudpaird) Service only ran for 0 seconds. Pushing respawn out by 10 seconds." I ...
0
votes
0answers
52 views

Creating LaunchAgents to Customize Screensaver and Background

I'm building a series of images that will be deployed on a multitude of different Macs from 2007-2015 (and onward). The user accounts will the local-forced Active Directory accounts, so I'm making ...
0
votes
0answers
39 views

System accounting broken after MacOS X upgrade: why? fix?

After MacOS X upgrades (Mavericks, Yosemite) I noticed the system accounting was broken. What is this? The system accounting is a kernel function which record any command run on the system. It is a ...
0
votes
0answers
64 views

Setup launchd task to run when USB device is connected

I'm hoping to setup a script to run automatically when a USB device is connected, however I'm not certain how to trigger it. Unfortunately the USB device isn't a volume, so I can't use the onmount ...
0
votes
0answers
36 views

mpd stuttering when run under launchd

Background As a terminal junkie, I've started messing around with a combination of mpd (Music Player Daemon) and a player, ncmpcpp (NCurses Media Player Client C++). I installed these via Homebrew - ...
0
votes
0answers
132 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 ...
0
votes
0answers
45 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 ...
0
votes
0answers
96 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: ...
0
votes
0answers
197 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 ...