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.
removed