Skip to content

Instantly share code, notes, and snippets.

@pavel-mukhanov
Created January 11, 2014 19:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavel-mukhanov/8375567 to your computer and use it in GitHub Desktop.
Save pavel-mukhanov/8375567 to your computer and use it in GitHub Desktop.
Mac OS X launchd script for rTorrent
<?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