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

Bug 59435

Summary: mldonkey-2.5.16-r6 init script renices all the processes ${USER} has
Product: Gentoo Linux Reporter: Tiv <tivadar.szemethy>
Component: Current packagesAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tiv 2004-08-04 11:53:34 UTC
mldonkey init script uses
renice ${NICE} -u ${USER}

which results of renicing ALL the processes started by ${USER}, not only those launched by mldonkey init script.
a better solution would be something like

for i in `pgrep -u ${USER} mlnet`
 do
  renice -p $i ${NICE}
 done

or something like that.




Reproducible: Always
Steps to Reproduce:
Comment 1 Jon Hood (RETIRED) gentoo-dev 2004-08-04 14:02:18 UTC
fixed in portage, thanks :)
Comment 2 Antonio 2004-08-05 00:21:01 UTC
With this patch i see this error:

gentoonet root # /etc/init.d/mldonkey start
 * Starting mldonkey...
13334: vecchia priorit
Comment 3 Antonio 2004-08-05 00:21:01 UTC
With this patch i see this error:

gentoonet root # /etc/init.d/mldonkey start
 * Starting mldonkey...
13334: vecchia priorità 0, nuova priorità 0
renice: 19: getpriority: No such process                                  [ !! ]

renice does not work.
Comment 4 Antonio 2004-08-05 00:27:47 UTC
I correct this line:

 renice -p $i ${NICE}

in

 renice ${NICE} -p $i
Comment 5 Antonio 2004-08-05 00:29:40 UTC
With this patch mldonkey work well

gentoonet root # /etc/init.d/mldonkey start
 * Re-caching dependency info (mtimes differ)...
 * Starting mldonkey...
13855: vecchia priorit
Comment 6 Antonio 2004-08-05 00:29:40 UTC
With this patch mldonkey work well

gentoonet root # /etc/init.d/mldonkey start
 * Re-caching dependency info (mtimes differ)...
 * Starting mldonkey...
13855: vecchia priorità 0, nuova priorità 19                              [ ok ]
Comment 7 Jon Hood (RETIRED) gentoo-dev 2004-08-05 14:24:08 UTC
sorry about that- fixed ;)