Launchd script on OSX 10.10 Yosemite

Hello all,

I've been working on getting NR compiled and installed on my mac. Unbelievably, Apple completely broke the launchctl api, so lots of projects had to rework their whole process.

I've got a plist file written here:

<?xml version="1.0" encoding="UTF-8"?>  
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">  
<plist version="1.0">  

Obviously, if your binary isn't at /usr/local/bin then change the that. And if you don't want to use that /usr/local/bin/var/log for the log file, then delete that line and it should log to var/log/system.log.

Then copy and paste that into a file called com.netresponsibility.daemon.plist

sudo cp com.netresponsibility.daemon.plist /Library/LaunchDaemons \
sudo chmod 755 /Library/LaunchDaemons/com.netresponsibility.daemon.plist \
sudo launchctl bootstrap system /Library/LaunchDaemons/com.netresponsibility.daemon.plist \
sudo launchctl enable system/com.netresponsibility.daemon \
sudo launchctl kickstart -k system/com.netresponsibility.daemon

One known issue, is that NR continually logs Another instance of the sniffer is already running every 10 seconds. I haven't yet figured that one out. I don't know if that's an NR compatibility issue with OSX, or some issue with my plist, or something else. I'll keep investigating.

Sign In or Register to comment.