summaryrefslogtreecommitdiff
path: root/net-p2p/rtorrent/files/rtorrentd.init
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-21 19:03:35 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-21 19:03:35 +0000
commit0ebf740b9c9bc7c10ac41bea315ecc6c01c79166 (patch)
tree15bb76d57cfb8652fd2627a24007e0bb92ec4a99 /net-p2p/rtorrent/files/rtorrentd.init
parent5b5df25227111ef465caf5c52bcfb66dac3219cd (diff)
gentoo resync : 21.01.2018
Diffstat (limited to 'net-p2p/rtorrent/files/rtorrentd.init')
-rw-r--r--net-p2p/rtorrent/files/rtorrentd.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/net-p2p/rtorrent/files/rtorrentd.init b/net-p2p/rtorrent/files/rtorrentd.init
index 06fab7d20846..83943cd56611 100644
--- a/net-p2p/rtorrent/files/rtorrentd.init
+++ b/net-p2p/rtorrent/files/rtorrentd.init
@@ -21,13 +21,14 @@ start() {
--env HOME="${PWHOME:-/home/$USER}" \
--name rtorrent \
--exec /usr/bin/screen -- -D -m -S rtorrentd /usr/bin/rtorrent
- # Because we've daemonized with screen, we need to replace the PID file with the real PID of rtorrent
- pgrep -P $(cat /var/run/rtorrentd.pid) > /var/run/rtorrentd.pid
eend $?
}
stop() {
ebegin "Stopping rtorrent"
+ # Because we've daemonized with screen, we need to replace the PID file with the real PID of rtorrent
+ pgrep -P $(cat /var/run/rtorrentd.pid) > /var/run/rtorrentd.pid
+
start-stop-daemon --stop --signal 15 \
--pidfile /var/run/rtorrentd.pid
eend $?