summarylogtreecommitdiffstats
path: root/rtorrent.service
diff options
context:
space:
mode:
Diffstat (limited to 'rtorrent.service')
-rw-r--r--rtorrent.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/rtorrent.service b/rtorrent.service
new file mode 100644
index 000000000000..e0bf9ed2aad1
--- /dev/null
+++ b/rtorrent.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Headless rTorrent
+After=network.target
+
+[Service]
+Type=simple
+KillMode=process
+WorkingDirectory=~
+Environment="TERM=linux"
+ExecStart=/bin/dtach -N /tmp/rtorrent.dtach /bin/rtorrent -n -o import=%h/.rtorrent/rtorrent.rc
+
+[Install]
+WantedBy=default.target
+