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

learn more… | top users | synonyms (2)

1
vote
1answer
27 views

Remove .plist from /LaunchAgents

Before I go to the issue, I did find a similar thread, but it's quite outdated and I'm not sure if it suits for me. Around two years ago when I got my Mac, I decided to install Seagate Media Sync for ...
0
votes
0answers
20 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/ ...
1
vote
2answers
50 views

Why does my LaunchAgent return ROOT as the user?

I have a plist in the /Library/LaunchAgent folder (this should run as "logged in user", if I understand correctly but it seems to be running as root). It launches a .sh bash script. <?xml ...
0
votes
0answers
18 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 ...
1
vote
0answers
17 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 ...
2
votes
1answer
139 views

Why is my BASH script being executed twice? I'm using launchd

I have one plist associated with this launchd agent. There is one agent listed in launchctl list, and it calls my bash script, called rc.wakeup, whenever the mac is woken up from sleep. There is only ...
1
vote
0answers
45 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
21 views

How to find root cause of launchd crashing

I've got Mavericks running on a headless Mac Mini that I remote into via ARD. It does not have an monitor attached. At seemingly random intervals, I will no longer be able to connect via ARD (I ...
1
vote
2answers
49 views

How to periodically show alert message *in foreground*?

I want to have an alert / dialog box to fire up periodically in foreground. I tried a combination of AppleScript and launchd and managed to have the script (actually converted to a app) fired up ...
0
votes
0answers
23 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, ...
2
votes
2answers
64 views

Can launchd be made to set a different owner on files it creates while executing a .plist job?

I have a launchctl .plist file in /Library/LaunchDaemons as follows: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" ...
0
votes
0answers
18 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
41 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
65 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, ...
1
vote
2answers
58 views

Automated screensaver configuration in command line/shell script

So I'm configuring some Default User Template LaunchAgents to configure a default screensaver for some of my company's most popular fan art. (It's actually been really well received by the team). ...
0
votes
0answers
5 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
290 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
32 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 ...
2
votes
1answer
42 views

How do I keep an ssh tunnel alive using launchd?

I would like to keep an ssh tunnel alive. Below is my launch agent plist file but it only keeps the tunnel up for a day or two at the most. I'm using OS X 10.10.3. <?xml version="1.0" ...
0
votes
1answer
76 views

Why can't I use `launchctl setenv` from `tmux`?

If I'm running within tmux and I try to update an environment variable with launchctl, I see an error like this: $ launchctl setenv GIT_SSH /opt/local/bin/ssh Not privileged to set domain ...
0
votes
0answers
33 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
2answers
98 views

Launchctl says plist is invalid, plutil says it's OK

I'm trying to have launchd run a shell script when I join a new WiFi network. I've created this plist file (closely based on this SuperUser answer) at ...
0
votes
0answers
37 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
22 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 - ...
1
vote
0answers
55 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 ...
2
votes
1answer
233 views

Configure Yosemite Server WebApp with LaunchD

Question Has anyone successfully been able to start a webapp via a webappctl configuration which specifies a launchd configuration in their webapp.plist launchKeys key? Background Specifically, ...
1
vote
1answer
116 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
61 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
68 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
93 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
28 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
41 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
76 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 ...
2
votes
0answers
551 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
2answers
244 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
1answer
253 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
71 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
38 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
132 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
91 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
311 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
39 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
126 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
34 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
251 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 ...
6
votes
0answers
498 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
83 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 ...
1
vote
0answers
267 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
50 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"> ...
1
vote
3answers
1k 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 ...