This seems to mostly work, but still having some issues keeping it stable. Maybe this will help someone else anyway 🙂

Here’s what I did on Mac OSX Sierra Latest:

first:

# nano ~/Library/LaunchAgents/com.nzbhydra.nzbhydra.plist

put this (change path + username):

<?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.nzbhydra.nzbhydra</string>
 <key>ProgramArguments</key>
 <array>
 <string>/Users/YOUR_USERNAME/NZB-APPS/nzbhydra/run.sh</string>
 </array>
 <key>RunAtLoad</key>
 <true/>
 <key>KeepAlive</key>
 <false/>
 <key>StandardErrorPath</key>
 <string>/usr/local/var/log/nzbhydra.log</string>
 <key>StandardOutPath</key>
 <string>/usr/local/var/log/nzbhydra.log</string>
 </dict>
</plist>

make this:

# nano /Users/YOUR_USERNAME/NZB-APPS/nzbhydra/run.sh

with this content (change username, and path and IP):

#!/bin/bash
/usr/bin/python /Users/YOUR_USERNAME/NZB-APPS/nzbhydra/nzbhydra.py --logfile /usr/local/var/log/nzbhydra.log --host YOUR_IP_ADD_RESS --nobrowser --daemon

save and exit then:

# chmod +x run.sh

test:

# touch /usr/local/var/log/nzbhydra.log
# tail -f /usr/local/var/log/nzbhydra.log 
# /Users/YOUR_USERNAME/NZB-APPS/nzbhydra/run.sh

you should see output and nzbyhydra should be available at http://YOUR.IP:5075
if it all runs you probably want to make it start on reboot:

launchctl load ~/Library/LaunchAgents/com.nzbhydra.nzbhydra.plist
launchctl start com.nzbhydra.nzbhydra

and here’s how you unload if you need to:

launchctl unload ~/Library/LaunchAgents/com.nzbhydra.nzbhydra.plist

Let me know if this helps you or have a better way by commenting!

Comments

Comment by Joy on 2017-06-25 21:41:47 -0500

Do you have a tutorial to get this working step by step. I tried everything but nit able to get it on mac

Comment by Rory on 2017-09-04 17:56:49 -0500

This was super helpful, but I got a little thrown by the com.jackett.jackett stuff. Did you copy and paste this format from something else you were working on?

In case anyone else is having trouble, that is an entirely unrelated service that you don’t need for NZBHydra. I didn’t realize at first because it’s just the label in the plist part, but you’ll definitely need to change the “jackett"s to “nzbhydra” to make it start on boot properly.