Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 389905

Summary: net-p2p/btpd-0.15: btpd can't start if BTPDUSER is "root"
Product: Gentoo Linux Reporter: Denis <public>
Component: New packagesAssignee: Ricardo Cordeiro <Ricardo.Cordeiro>
Severity: normal CC: net-p2p, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

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