|Summary:||net-p2p/btpd-0.15: btpd can't start if BTPDUSER is "root"|
|Product:||Gentoo Linux||Reporter:||Denis <public>|
|Component:||New packages||Assignee:||Ricardo Cordeiro <Ricardo.Cordeiro>|
|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 2015-12-31 12:13:18 UTC