From 1a160de4c7d55e14c9335a5ae2bcc10443d92a51 Mon Sep 17 00:00:00 2001 From: Taker Date: Sun, 31 Jan 2021 17:36:09 +0100 Subject: [PATCH] new service file --- sources/rtorrent.service | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sources/rtorrent.service b/sources/rtorrent.service index 9ed671a..57138b8 100644 --- a/sources/rtorrent.service +++ b/sources/rtorrent.service @@ -1,14 +1,11 @@ [Unit] -Description=rTorrent +Description=Flood Web UI After=network.target [Service] +WorkingDirectory=~ +ExecStart=/usr/bin/flood User=flood -Type=forking -KillMode=none -ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/local/bin/rtorrent -ExecStop=/usr/bin/killall -w -s 2 /usr/local/bin/rtorrent -WorkingDirectory=%h [Install] -WantedBy=default.target \ No newline at end of file +WantedBy=multi-user.target \ No newline at end of file