Created
April 10, 2015 13:29
-
-
Save thde/3af1ac7ef8fafcf0fb65 to your computer and use it in GitHub Desktop.
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
#!upstart | |
# | |
description "rTorrent deamon" | |
setuid rt | |
setgid rt | |
start on startup | |
stop on shutdown | |
expect daemon | |
chdir /home/rt | |
script | |
exec tmux new-session -d -s rtorrent -n rtorrent rtorrent | |
end script | |
pre-stop script | |
exec tmux send-keys -t rtorrent C-q | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment