Created
January 11, 2014 19:25
-
-
Save pavel-mukhanov/8375567 to your computer and use it in GitHub Desktop.
Mac OS X launchd script for rTorrent
This file contains 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"> | |
<!-- | |
Place this file to /Library/LaunchAgents/ | |
In terminal run: | |
sudo launchctl load -w /Library/LaunchAgents/rtorrent.plist | |
This works with tmux http://tmux.sourceforge.net/ | |
As a frontend you can use Nativa https://www.macupdate.com/app/mac/33591/nativa | |
--> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>rtorrent</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/tmux</string> | |
<string>new-session</string> | |
<string>-s</string> | |
<string>rtorrent</string> | |
<string>-d</string> | |
<string>rtorrent</string> | |
</array> | |
<key>KeepAlive</key> | |
<true/> | |
<key>StandardOutPath</key> | |
<string>/Users/user/launchd.stdout.log</string> | |
<key>StandardErrorPath</key> | |
<string>/Users/user/launchd.stderr.log</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment