0
votes
2answers
35 views

Run script as root whenever any user logs in

What's the best way to run a script with root privileges whenever any user logs in? It should run in the background without prompting the user for a password.
3
votes
1answer
74 views

launchd with high disk usage

launchd is producing a lot of I/O activity. In the last day and a half it managed to write 12 GB of data while reading 500MB. I the logs I do not see anything suspicious. Any suggestion at where ...
0
votes
0answers
20 views

Bootstrap context issues when logging in via ssh with private key

I use ssh to connect to my laptop remotely. Recently, I decided to improve security by using a private key to authenticate instead of a password. I am able to connect and login with my user account, ...
3
votes
2answers
79 views

Run action when device is detached

I'm using a launchd agent to run a shell script whenever I connect my thunderbolt dock. I've been able to use IOKit notifications to detect when the dock is being attached, but I also want to run a ...
2
votes
1answer
34 views

speed up launchctl execution

I've set up a bunch of scripts that need to happen when I connect my thunderbolt dock at home (disable wifi, enable bluetooth, ...). To detect the thunderbolt dock I make use of the following ...
0
votes
0answers
25 views

Which user's privileges do I use to run MariaDB?

I installed mariadb from Homebrew. It'll be used for CMS access through PHP. I want the DB to start when the system starts up so I added the homebrew/ mariadb-supplied launchctl plist to ...
0
votes
0answers
69 views

Launchd Multicast Socket Listener

I'm not sure if I've just missed some documentation or not, but I'm having a hard time figuring out how to set up a launchd agent that can be triggered whenever a datagram is received within a ...
1
vote
1answer
39 views

Show running launchctl

When I run sudo launchctl bslist ... it shows all the running /System daemons, but I have some running from /Library/LaunchDaemons and it is not showing those. How can I show them?
0
votes
2answers
55 views

How to add a timestamp in log files on launchd?

In launchd, you can change the path of the log files in .pist file using StandardOutPath and StandardErrorPath, but when I used it to output the log returned by the process, the resultant log files ...
1
vote
1answer
85 views

Why the launchd has multiple instances per user (not only me and root, but also _spotlight and _windowserver)?

I found that the launchd process has multiple instances in the process list. What is looking interesting is that there are four users under which these launchd processes are running: root < ...
2
votes
2answers
125 views

How to reset OS X volume after sleep using launchd?

I'm been trying to write a plist file on which when I return from sleep mode, I always want to make my Mac volume to the minimum amount. However, it looks like the following plist doesn't work, with ...
2
votes
1answer
228 views

How to run multiple commands on reboot using launchctl/plist?

In OS X, you can write a plist file in ~/Library/LaunchAgents/ (or something similar, depending on what permissions/users you like it to be operated on), and load it using launchctl to make it ...
1
vote
1answer
58 views

How to uninstall software that is running when the mac logs in

I get this every time I log in Which is an application that I downloaded a while back. But I can't locate it in my applications folder and I also cant see it in this: How should I go about ...
2
votes
1answer
357 views

Why is my launchd job running at boot even with RunAtLoad key set to false?

I have a launchd plist file that I use to run a program at a selected time every day. It works, but it also runs the program whenever I boot the computer or unload and reload the job using the GUI ...
1
vote
1answer
37 views

How do I determine where a process is being started from, and disable it?

When I start OS X (Mavericks) and run ps aux | grep postgres from Terminal, I have a process that was automatically started: postgres 132 0.0 0.1 2526456 7936 ?? Ss 10:04PM ...
0
votes
1answer
170 views

Making items added to paths via paths.d show up everywhere under Mavericks

I'd like to set the path under OS X Mavericks so that the setting shows up everywhere (e.g., in .apps and in Darwin shells). There's plenty of discussion out there about how to set environment ...
1
vote
2answers
533 views

How to automount SSHFS volumes with FUSE OS X on Mavericks

Iv'e managed to get my ssh volumes mounted with SSHFS via the command line but would really like is to have them auto mount on login. So far, I've set up a launchAgent to run a shell script that ...
3
votes
1answer
216 views

Uninstalling Genieo broke my system

Update below, the rest is more or less background information. After discovering a Genieo install, I vaguely recalled it being, well, not trustworthy. After a quick search I knew I wanted to ...
1
vote
2answers
374 views

Why Does a Shell Script Trapping SIGTERM Work When Run Manually, But Not When Run via launchd?

Okay, quite simply I have a shell script that needs to wait for something to happen, but it has a lock-file and some child-processes that I need to ensure are tidied up if the script is interrupted. ...
3
votes
2answers
221 views

Add Static ARP Entry at Boot

I'm new to Mac OS X. On Linux I'd: append to /etc/rc.local arp -i eth0 -s 192.168.1.1 00:00:00:00:00:00 I've figured out how to do it in Terminal: sudo arp -s 192.168.1.1 00:00:00:00:00:00 But ...
1
vote
0answers
70 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, ...
1
vote
1answer
41 views

How to load a LaunchAgent always as root?

I'm using a LaunchAgent to always open a cocoa application (i.e. Xcode) at login. the custom application requires root permission but when it's loaded by launchctl is loaded without permissions. How ...
1
vote
1answer
215 views

Unable to start after having applied all known recovery steps

Traditional recovery steps After a forced startup due to a wifi connection issue, the startup stayed stuck with a grey screen, Apple logo and turning spinning indicator. Then I tried all the ...
3
votes
4answers
1k views

no such process error with launchctl start. Mac OSX 10.9

The goal is to set machine's network name with the ipaddress of this machine. I have created a plist file and put it into /Library/Launchagents/. For debugging reason I used the command "launctl ...
0
votes
2answers
101 views

Need help creating Global Daemon for EyeFi Server

I have been trying to come up with a headless solution for transferring images from an eyefi card to my mac. The software from the vendor is decent, but it will only transfer images if there is a ...
0
votes
0answers
63 views

My Launch Agent not lauching at system load

i'm trying to make a simple Launch Agent that run a test app at system load. I followed the official documentation, but can not get it to work. my plist file is located at ...
1
vote
2answers
93 views

Making file associations launch a certain extension, but with a console program?

It is possible using the right click menu on "Open With" to get the option to choose an application to open a certain file extension. You can then say "Always Open With This". That works if the ...
4
votes
1answer
136 views

What is the relationship between `launchctl limit` and `ulimit`?

There is not any ulimit configuration in system startup files/ shell startup scripts. ulimit -a shows: -u: processes 1064 -n: file descriptors 256 launchctl ...
1
vote
2answers
908 views

Grey Volume bar - coreaudiod - Job failed to exec(3) for weird reason: 2

I've just installed the Mavericks 10.9.1 update and my audio is not working. The volume bar is obscurely grey, and the mac is becoming slightly slow. I checked the console to see anything related to ...
2
votes
2answers
2k views

Can't delete .plist files from Trash

I have a program which, when deleting any app, also deletes the extra files and junk as well; including .plist files. Normally this works great though, this time around I've had a few files which ...
36
votes
8answers
26k 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 ...
2
votes
2answers
1k views

Getting launchd to read program arguments correctly

I have a launchd script where the command I'm trying to run is erroring (apparently that's not a word, it is now), complaining of improper usage. The specific error I'm getting is the command's usage ...
4
votes
2answers
462 views

Run a launchd job after Time Machine backup

Quite simply, I have a process that's triggered by launchd but currently runs once an hour, however really what I would like it to do is run once a Time Machine backup has completed. Initially I ...
0
votes
0answers
28 views

Upgraded to OS X 10.8, scheduled job stopped working

I'm using QuincyKit, a crash reporting system for OS X and iOS apps. It contains a component that runs on my development machine and symbolicates the submitted crash reports. It's supposed to run on ...
2
votes
1answer
153 views

launchd keeps restarting my binary in /Library/PrivilegedHelperTools

I am looking to install a privileged helper tool using SMJobBless. My plist only contains the MachServices key and RunAtLoad key. The RunAtLoad is set to true as I want to be launched automatically ...
1
vote
2answers
396 views

What exactly is the purpose of TimeOut key in launchd plist?

What exactly is the purpose of 'TimeOut' key in launchd plist? I thought a program specified through the first parameter of ProgramArguments will be executed after waiting seconds specified as the ...
0
votes
2answers
394 views

Restart OS X if an application has crashed/is not responding/beachballed?

How can I automatically restart the machine if an application has crashed in any way? It might have cleanly exited, have a quit unexpectedly error, or be frozen with the spinning beachball. I don't ...
0
votes
1answer
163 views

What is com.apple.launchctl.Aqua?

While troubleshooting a slow boot time in Lion (10.7), I saw these lines in the sys log: 8/21/13 8:47:45.102 PM com.apple.launchctl.Aqua: load: option requires an argument -- D 8/21/13 8:47:45.102 PM ...
1
vote
1answer
874 views

What do appleeventsd and AppleIDAuthAgent do?

I looked in the activity monitor to clarify what are those processes and started with alphabetic order. I know different resources where many processes are described. But appleeventsd and ...
3
votes
1answer
8k views

What does lsboxd process do on os x?

My firewall asked me for a connection from lsboxd (module com.apple.ls.boxd, ) to one another computer in my network to the port tcp 548. What does it do? I found that it is a part of sandbox ...
0
votes
1answer
233 views

start ntpd with launchdaemon

I would like to start an ntpd on my MacOSX 10.8. ntpd is configured correctly and runs when started manually. I would like to start it on boot time with lauchdaemon. I created this ...
1
vote
1answer
2k views

Submitting job to launchd gives error “no plist returned”, “nothing found to load”

I'm writing my first launchd plist. When I try to load it with the following command: $ launchctl load com.Test01.plist launchctl: no plist was returned for: com.Test01.plist nothing found to load ...
1
vote
2answers
1k views

GUI service manager for OS X?

I am looking for a GUI application, with in icon on the top bar, that can be used to start and stop different services on OS X. These do not have to be real OS X (launchd) services/daemons, it is ...
0
votes
1answer
112 views

on-demand launch agent restarting automatically

As title says I have created a on-demand launch agent that listens to socket and is launched on incoming connection. It works well and after it has done it's job I want to quit it. After quitting ...
0
votes
1answer
121 views

Setting .plist path to user Library

I have created a OS X launch agent that is installed per user. It is listening socket and automatically launched when socket connection arrives. On my .plist I have ...
1
vote
1answer
140 views

Launchd - Run as if you're logged in as a user using sudo

Is there a way to do this? Basically I'm trying to run a script that needs to launch a program. Putting the script in /Library/LaunchDaemons works fine, but everything gets run as if its the root ...
1
vote
2answers
265 views

Need Help with an Applescript / plist

This has been a learning experience for me. Everything checks out logically to me in this script/ plist but something isn't correct. Everything runs, but then the script runs every minute which is ...
3
votes
1answer
358 views

In Mountain Lion why do remote shells via ssh do NOT inherit the environment of the launchd parent process?

When logging in to my Mountain Lion Mac remotely via ssh I do not get the same PATH variable as when I open a shell locally: The local shell inherits its environment as expected from launchd and ...
8
votes
3answers
831 views

How do I automatically kill processes that leak memory?

I have problems with processes that leak memory. They cause my hard drive to be filled with swap files in /private/var/vm. I would like leaking processes to be killed at sight by the OS. I’m not ...
2
votes
1answer
2k views

Plist in /System/Library/LaunchAgents not loading on reboot [closed]

I have created the plist and placed it in /System/Library/LaunchAgents/. However, when I reboot my Mac it does not load like it is expected to. I am able to load it from the Terminal with launchctl ...