diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-02 19:13:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-02 19:13:18 +0100 |
commit | eb2235d914984bff74c625de4fa4887d4f86f971 (patch) | |
tree | ec2a404a3e934f61b39cb264645bd763ece11503 /net-p2p/rtorrent/files/rtorrentd.init | |
parent | b0378783c1929d283116fe183089c123dba5869c (diff) |
gentoo auto-resync : 02:10:2022 - 19:13:17
Diffstat (limited to 'net-p2p/rtorrent/files/rtorrentd.init')
-rw-r--r-- | net-p2p/rtorrent/files/rtorrentd.init | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/net-p2p/rtorrent/files/rtorrentd.init b/net-p2p/rtorrent/files/rtorrentd.init deleted file mode 100644 index 83943cd56611..000000000000 --- a/net-p2p/rtorrent/files/rtorrentd.init +++ /dev/null @@ -1,35 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - use net ypbind nis - after slapd mysqld postgresql -} - -start() { - PWHOME="$(getent passwd $USER | awk -F: '{ print $6 }')" - - ebegin "Starting rtorrent" - env TERM="xterm" \ - start-stop-daemon \ - --start \ - --make-pidfile \ - --pidfile /var/run/rtorrentd.pid \ - --background \ - --user $USER \ - --env HOME="${PWHOME:-/home/$USER}" \ - --name rtorrent \ - --exec /usr/bin/screen -- -D -m -S rtorrentd /usr/bin/rtorrent - 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 $? -} |