Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210520 - net-p2p/btpd-0.13 does improper shutdown if started in a different directory
Summary: net-p2p/btpd-0.13 does improper shutdown if started in a different directory
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard: Pending removal: 2015-12-09
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2008-02-17 20:40 UTC by Alexander Stein
Modified: 2015-12-31 12:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Stein 2008-02-17 20:40:12 UTC
I've started btpd in a different directory (via '-d $dir') to store data and files. Because of that every 'btcli' command needs the '-d $dir' option to find the correct files. In /etc/conf.d/btpd i can config this option in the variable $BTPDEXTRARGS. But during shutdown only the command 'su ${BTPDUSER} -c "btcli  kill"' is executed, without any options which will not work.
The stopping function should take care of the possible directory option during shutdown. I tried by inserting the option manually which works. May be an extra variable for a non-standard directory can be used for that.

Reproducible: Always

Steps to Reproduce:
1. Install btpd
2. Set the option '-d $dir' into $BTPDEXTRARGS in /etc/conf.d/btpd
3. Start & Stop btpd

Actual Results:  
/etc/init.d/btpd stop [ ok ]
 * Stopping BitTorrent Protocol Daemon ...
btcli: cannot open connection to btpd in /home/alex/.btpd: No such file or directory

Expected Results:  
/etc/init.d/btpd stop [ ok ]
 * Stopping BitTorrent Protocol Daemon ...
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2008-03-04 14:06:15 UTC
Ricardo, all yours
Comment 2 Ricardo Cordeiro 2008-03-06 16:08:42 UTC
Thanks Alexander for this bug report. I'll take a look at this during easter vacations.

Cheers
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-04-26 13:14:59 UTC
(In reply to Ricardo Cordeiro from comment #2)
> I'll take a look at this during easter vacations.

Is there an estimation of how many more Easter vacations you'll need? ;) :D
Comment 4 Pacho Ramos gentoo-dev 2015-11-04 14:16:02 UTC
Upstream looks dead for a long time and there are plenty of bittorrent clients in the tree... maybe this should be treecleaned
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2015-11-05 07:47:56 UTC
fine by me
Comment 6 Pacho Ramos gentoo-dev 2015-12-31 12:13:09 UTC
removed