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

learn more… | top users | synonyms (2)

3
votes
0answers
52 views

Loading User LaunchAgent Successfully

I have created a Plist file to replace an Xinetd process that I used successfully in Windows (Cygwin) and Linux to stream an imapd connection from a remote server via ssh on a port on the localhost. ...
2
votes
0answers
19 views

Do I really need a huge plist file to replicate this cron job?

I am looking to create a launchd job that will execute Monday through Friday at 7:32am, 8:32am, and 2pm. Do I really need a plist that has an array of 15 <dict> elements for every combination of ...
2
votes
0answers
161 views

customize system launchagent arguments in el capitan

Is there any way to work around the inability to customize launchagent plists in El Capitan without completely disabling system integrity protection? Specifically, I was sad to find that my ...
2
votes
0answers
1k 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
204 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 ...
2
votes
0answers
197 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
1k 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
385 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
432 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

Force Samba service to start before Apache

I'm trying to use a Apache-based application which depends on NFS and Samba shares to access files on a remote server (the application will then use WebDAV to access the files). I wanted to ...
1
vote
0answers
22 views

How should daemons tell users about errors?

I wrote a bash script that backs up certain files on my computer. To automate the running of the script, I set up an associated daemon that runs the script every day. There are certain instances ...
1
vote
0answers
11 views

Why the service does not start after logging in

The service is jenkins installed with homebrew on Yosemite. I have this: ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist and this: % launchctl list | grep jenkins - 0 ...
1
vote
0answers
687 views

Error executing AppleScript through Launchd - “Service could not initialize”

I've written an AppleScript that turns our CenturyLink modem's wireless radio on or off. It works when I run it manually with osascript, but now I'm trying to get it set up on a schedule with Launchd. ...
1
vote
0answers
61 views

Launchctl List - Screen Sharing Process Running While Disabled?

Below is my list of active processes as produced by the launchctl list command in terminal. I'm not messing with those processes, but I am studying them to learn more about how OS X works. The ...
1
vote
0answers
34 views

OS 10.10.5 launchctl job is not receiving input from socket

I tried following this clever guide by Sean Coates for setting up a remote pbcopy, but I'm running into trouble. I think it's because of the recent changes to launchctl after OS 10.10.5. He has me ...
1
vote
0answers
214 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 ...
1
vote
0answers
200 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
206 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
221 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 ...
1
vote
0answers
133 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
55 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
683 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
238 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
287 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
572 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
184 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
63 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
108 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
44 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
282 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
413 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
279 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
9 views

Replicating Crons MAILTO email output with launchd / launchctl

It's annoying that launchctl has done away with the MAILTO function that was in CRON. I'm wondering is there any wrapper script like Cronic that can be used to restore the email output function? ...
0
votes
0answers
31 views

Open jnlp Java program with launchd

I'm trying to run a vendor provided jnlp app using launchd on a 10.10 Mac. I have a LaunchDaemon plist that opens a .sh script. This runs as root. This script has 2 main steps. Step 1 copies a csv ...
0
votes
0answers
103 views

How to get those errors out from my Console?

my mac is generating those errors at every 5 seconds. Running latest stable version of EL Capitan. Any idea? Any help would be useful. 15/03/16 09:24:50,065 xpcproxy[12275]: LaunchServices: ...
0
votes
0answers
66 views

Should I allow application “launchd” to accept incoming network connections?

I just bought a used MacBook running OS X El Capitan 10.11.3. I logged into the guest and it asked if I "should allow the application "launchd" to accept incoming network connections?" Should I ...
0
votes
0answers
25 views

launchctl list will show a service, but will not show detail

If I run "launchctl list", it shows a bunch of services. However, I can do "launchctl list SERVICENAME" on some services to show detail, but not on others: Eg: $launchctl list ... - 0 ...
0
votes
0answers
28 views

Microsoft Word on OS X running executable hyperlinks from 'launchd'

I'd like to create a script that calculates statistics on all opened applications and what parent process has initiated them. I would expect that the ppid for each running process will represent the ...
0
votes
0answers
27 views

Taking focus on app launch

It seems that most OS X applications launch into the foreground and thereby steal keyboard focus from its predecessor there. Searching here, I have found way to prevent a particular app from doing ...
0
votes
0answers
43 views

Replaceing Folder Action Dispatcher with LaunchAgent on Yosemite

The fact that Yosemite's Folder Action Dispatcher (the thing that watches folders for changes and then performs some action) is broken (High CPU/mem) is well documented. However, what to do about it ...
0
votes
0answers
52 views

launchctl load daemon by multiple users?

In OS X 10.10.5, an admin user A launches a daemon: sudo launchctl load /Library/LaunchDaemons/org.user.script.plist An admin user B also wants to load this daemon. But it is not found by "sudo ...
0
votes
0answers
32 views

ASL_DISABLE=1 in syslogd.plist

While re-enabling UDP syslog messages after the latest update on my OS X server I noticed this environment variable is being set. Does anyone have any ideas about what it means exactly, besides what ...
0
votes
0answers
24 views

“terminal-notifier.app is not open anymore”

From a .plist loaded to Launchd I run a bash script which displays a notification using terminal-notifier. The notification is displayed fine, but when clicked the message "terminal-notifier.app is ...
0
votes
0answers
42 views

Unable to set $PATH with EnvironmentVariables in launchd service

I want to set $PATH for a launchd service with EnvironmentVariables key. But it does work, the $PATH is unchanged whatever I set. However, I can set other environment var successfully with ...
0
votes
0answers
48 views

launchctl does not set environment variables correctly

I am trying to use launchctl to set the environment variables for Eclipse. What I want to do is pass my PATH to eclipse. I have tried to setup launchctl to do this. Here is the the output of ...
0
votes
0answers
25 views

How to see all services available for launching with launchctl?

I tried this on Yosemite: launchctl list but it doesn't show e.g. postfix which I have just launched with: launchctl kickstart system/org.postfix.master Is there any way of listing all the ...
0
votes
0answers
25 views

Check to see if program is running. If not, wait half hour and then start it again with parameters

I am asking specifically about selfControl. I am trying to ween myself off of a couple of websites, but would like to access them intermittently, but throw myself off again (I am weak man.) I know ...
0
votes
0answers
13 views

How can I have a LaunchDaemon script use the current logged in users Kerberos ticket

I have a LaunchDaemon that runs as root for security purposes but the script needs to authenticate w/ a URL as the currently logged in user. LaunchDaemons run in their own context so doing a kinit ...
0
votes
0answers
334 views

How can I stop callservicesd errors I find in Console?

I posted this to some other forum and found no luck. I'm learning Terminal, coding, and scripting. Every so often I check my Console just to see what's up. (Often I don't understand it all, but it's ...
0
votes
0answers
23 views

LaunchEvent for Screen Unlock

I'm looking to run a script whenever a user unlocks the deskop -- think resuming after screensaver or after locking with ctrl+shift+eject, not user login . My instinct is that there's a LaunchEvent I ...