-
-
Save obiwang/a9ace6afcd4cc9cf4e5d7387eea1c396 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. Using 'launchctl load -w ~/Library/LaunchAgents/aria2.plist' to test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
<string>--conf-path=<your conf path></string> | |
<string>--save-session=<your session path></string> | |
<string>--input-file=<your session path></string> | |
</array> | |
<key>WorkingDirectory</key> | |
<string>/Users/<your username>/Downloads</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment