Launchd script on OSX 10.10 Yosemite
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.netresponsibility.daemon</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/net-responsibility</string> <string>--daemon</string> <string>--logfile=/usr/local/var/log/net-responsibility.log</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> </dict> </plist>
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
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.