Created
December 9, 2014 00:14
-
-
Save yusufhm/66bdb5f43046ec9cdec2 to your computer and use it in GitHub Desktop.
Ubuntu upstart 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
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