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

learn more… | top users | synonyms (2)

0
votes
0answers
8 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
29 views
+50

launchctl error “nothing found to load” when run via cron

On OS X 10.9, I'm running a script via my user crontab (added using crontab -e) which, under some specific conditions (not related to this question), will run the following command to launch a menubar ...
0
votes
0answers
41 views

Error with com.apple.mrt (launchd) in El Capitan [on hold]

I just realized that the job "com.apple.mrt" crashes every 10 second on my Mac. What is exactly the aim of com.apple.mrt ? Apparently it should be a "Malware Removal Tool" Can I remove it from ...
1
vote
1answer
74 views

How to find root cause of launchd crashing

UPDATED: Added crash log. It's not clear (to me) why launchd is dying: Anonymous UUID: B3C59CC3-5B1B-3BDD-F35F-BB6973D6679B Thu Jul 30 07:55:30 2015 *** Panic Report *** panic(cpu 0 caller ...
4
votes
2answers
2k 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 ...
0
votes
1answer
51 views

Running Postgres as Launch Daemon

I am working on setting up a psql server and would therefore like postgres to run whenever the computer is on, regardless of whether I'm logged it. (The machine is running OS X Yosemite.) I set up a ...
0
votes
0answers
28 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
1answer
46 views

How to re-span a cron-like launchd script in case of script error?

I have a cron-like launchd script (StartCalendarInterval) that does a backup of some website data once per day: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD ...
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
33 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
30 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
1answer
124 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
1k 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 ...
0
votes
0answers
31 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 ...
45
votes
5answers
41k views

Why am I getting a “dubious ownership of file” error when Launch Agent runs my .plist file?

I have a Launch Agent configured to run a .plist file for example: /Library/LaunchAgent/foo.plist. Inside this .plist, it is set to run during LoginWindow and Aqua. When I attempt to launch my ...
1
vote
1answer
44 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 ...
14
votes
3answers
18k 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
0answers
64 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
59 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
1answer
110 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
0answers
22 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
45 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
164 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 ...
4
votes
2answers
987 views

How do I stop GitHub Conduit?

How do I stop GitHub Conduit and keep GitHub.app from reinstalling the job in launchd?
1
vote
0answers
74 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 ...
3
votes
2answers
2k 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 ...
2
votes
4answers
284 views

How to stop an app from launching on Login?

I have created an app, that sets itself to launch at Login using SMLoginItemSetEnabled. Here is the code it uses. My question is, how can I manually remove this app from launching at login? The app ...
1
vote
2answers
59 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
33 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
55 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 ...
2
votes
2answers
75 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
20 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
83 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
0answers
145 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 ...
48
votes
13answers
48k views

runaway distnoted process

Sometimes I see a distnoted process suddenly spin up and chew up 100% CPU (on one core) and a ton of memory, often in the neighborhood of 1.5G or so. This happens a few times a day, starting a month ...
1
vote
2answers
85 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). ...
9
votes
6answers
3k views

Run bash script at login stored in the home folder?

When I try to load a LaunchAgent plist from launchctl I can't find out how to run a script in the home directory. My code is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC ...
0
votes
0answers
7 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 ...
3
votes
1answer
85 views

How to switch from Spotlight to Alfred via Terminal?

I installed Alfred through homebrew-cask. I want to disable Spotlight and let Alfred be opened with Cmd+S. The first Terminal-based solution I tried was unloading Spotlight with sudo launchctl unload ...
0
votes
0answers
559 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
42 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
54 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
111 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
2answers
145 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
38 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
54 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 ...
3
votes
1answer
316 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
310 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 ...
0
votes
0answers
31 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
72 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 ...