diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-19 20:11:46 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-19 20:11:46 +0000 |
commit | 5b5df25227111ef465caf5c52bcfb66dac3219cd (patch) | |
tree | 31b713cac6188358125cbb66b8804030328740f0 /net-p2p/rtorrent/files/rtorrentd.init | |
parent | 02e2208f46f4e2c00fb9743cbc47350bdd233bfa (diff) |
gentoo resync : 19.01.2018
Diffstat (limited to 'net-p2p/rtorrent/files/rtorrentd.init')
-rw-r--r-- | net-p2p/rtorrent/files/rtorrentd.init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net-p2p/rtorrent/files/rtorrentd.init b/net-p2p/rtorrent/files/rtorrentd.init index 9672759a7bf4..06fab7d20846 100644 --- a/net-p2p/rtorrent/files/rtorrentd.init +++ b/net-p2p/rtorrent/files/rtorrentd.init @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { @@ -21,6 +21,8 @@ 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 $? } |