Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Created December 9, 2014 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusufhm/66bdb5f43046ec9cdec2 to your computer and use it in GitHub Desktop.
Save yusufhm/66bdb5f43046ec9cdec2 to your computer and use it in GitHub Desktop.
Ubuntu upstart script for rtorrent
description "Run a persistent rtorrent within screen"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
env LANG=en_US.utf8
env HOME=/home/ubuntu
setuid ubuntu
setgid ubuntu
exec screen -d -m -S rtorrentscreen rtorrent
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment