Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389905 - net-p2p/btpd-0.15: btpd can't start if BTPDUSER is "root"
Summary: net-p2p/btpd-0.15: btpd can't start if BTPDUSER is "root"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ricardo Cordeiro
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 19:15 UTC by Denis
Modified: 2015-12-31 12:13 UTC (History)
2 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 Denis 2011-11-08 19:15:30 UTC
If BTPDUSER is set to "root" in the /etc/conf.d/btpd then those part of /etc/init.d/btpd that is responsible to determining whether server is started uses pgrep that returns pid of scripts also. Script in /etc/init.d/ is also called "btpd" so when BTPDUSER is "root" script that attempt to run btpd determines itself as a running btpd-daemon. I suppose link of pidof (that can determine non-script programs) and ps (to get user of process returned by pidof) can be used instead of pgrep.

Reproducible: Always

Steps to Reproduce:
1. Stop btpd. /etc/init.d/btpd stop
2. set BTPDUSER=root in the /etc/conf.d/btpd
3. Try to start btpd. /etc/init.d/btpd start
Actual Results:  
Error message that deamon is already running is returned. Deamon is not attempted to run.

Expected Results:  
Deamon should start.
Comment 1 Pacho Ramos gentoo-dev 2015-12-31 12:13:18 UTC
removed