Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59435 - mldonkey-2.5.16-r6 init script renices all the processes ${USER} has
Summary: mldonkey-2.5.16-r6 init script renices all the processes ${USER} has
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 11:53 UTC by Tiv
Modified: 2004-08-05 14:24 UTC (History)
0 users

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 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 ;)