Skip to content

Instantly share code, notes, and snippets.

@stackia
Last active October 13, 2023 04:50
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save stackia/f38364c313b7af21c8b7 to your computer and use it in GitHub Desktop.
Save stackia/f38364c313b7af21c8b7 to your computer and use it in GitHub Desktop.
aria2c daemon start at boot. Put this file into /Library/LaunchDaemons, them 'chmod 600' and 'chown root'. Remember to fill placeholders below.
<?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>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.aria2</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/aria2c</string>
<string>--enable-rpc=true</string>
<string>--rpc-secret=<your secret></string>
<string>--rpc-allow-origin-all=true</string>
<string>--rpc-listen-all=true</string>
<string>--rpc-listen-port=6800</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/<your username>/Downloads</string>
</dict>
</plist>
@mediter
Copy link

mediter commented Sep 26, 2016

What label should be used if the installation isn't done via homebrew? Thank you very much!

@kehao95
Copy link

kehao95 commented Apr 10, 2019

Thank you very much this one works like charm!
BTW, if you are using Homebrew Aria2 instead of put this file into /Library/LaunchDaemons, you can put this file into /usr/local/Cellar/aria2/VERSION/ then you will be able to control it via brew services cmd.

@ilovefood2
Copy link

this is great, i was looking for this

Thank you very much this one works like charm!
BTW, if you are using Homebrew Aria2 instead of put this file into /Library/LaunchDaemons, you can put this file into /usr/local/Cellar/aria2/VERSION/ then you will be able to control it via brew services cmd.

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