diff options
Diffstat (limited to 'net-p2p/rtorrent/files')
-rw-r--r-- | net-p2p/rtorrent/files/rtorrentd.conf | 1 | ||||
-rw-r--r-- | net-p2p/rtorrent/files/rtorrentd.init | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/files/rtorrentd.conf b/net-p2p/rtorrent/files/rtorrentd.conf new file mode 100644 index 000000000000..5ff2328b2544 --- /dev/null +++ b/net-p2p/rtorrent/files/rtorrentd.conf @@ -0,0 +1 @@ +USER="$USER" diff --git a/net-p2p/rtorrent/files/rtorrentd.init b/net-p2p/rtorrent/files/rtorrentd.init new file mode 100644 index 000000000000..316cd2b4faec --- /dev/null +++ b/net-p2p/rtorrent/files/rtorrentd.init @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/files/rtorrentd.init,v 1.1 2008/12/26 07:01:43 darkside Exp $ + +depend() { + use net.* +} + +start() { + ebegin "Starting rtorrent" + start-stop-daemon --start --chuid $USER \ + --env TERM="xterm" \ + --env HOME="/home/$USER" \ + --exec /usr/bin/screen -- -dmS rtorrentd /usr/bin/rtorrent + eend $? +} + +stop() { + ebegin "Stopping rtorrent" + start-stop-daemon --stop --signal 2 --name rtorrent + eend $? +} |