Skip to content

Instantly share code, notes, and snippets.

@risyasin
Last active August 29, 2015 14:16
Show Gist options
  • Save risyasin/35836b4aaa2eac60bc8b to your computer and use it in GitHub Desktop.
Save risyasin/35836b4aaa2eac60bc8b to your computer and use it in GitHub Desktop.
homebrew minidlna launchctl
<?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>homebrew.minidlna</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/minidlnad</string>
<string>-d</string>
<string>-f</string>
<string>/usr/local/etc/minidlna.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local/var</string>
</dict>
</plist>
@risyasin
Copy link
Author

risyasin commented Mar 3, 2015

How to install DLNA server Mac OS and autostart dlna server during boot up.

brew update 
brew install minidlna

then paste the file content

sudo nano /Library/LaunchDaemons/homebrew.minidlna.plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment