summaryrefslogtreecommitdiff
path: root/net-p2p/rtorrent/files/rtorrent-r1.init
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/rtorrent/files/rtorrent-r1.init')
-rw-r--r--net-p2p/rtorrent/files/rtorrent-r1.init16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/files/rtorrent-r1.init b/net-p2p/rtorrent/files/rtorrent-r1.init
new file mode 100644
index 000000000000..e16f262bfbe3
--- /dev/null
+++ b/net-p2p/rtorrent/files/rtorrent-r1.init
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Distributed under the terms of the GNU General Public License v2
+
+description="rTorrent BitTorrent client"
+
+command="/usr/bin/rtorrent"
+command_args="-o system.daemon.set=true"
+command_background=true
+command_user="${USER}"
+pidfile="/run/rtorrent.pid"
+
+depend()
+{
+ use net ypbind nis
+ after slapd mysqld postgresql
+}