| Summary: | mldonkey-2.5.16-r6 init script renices all the processes ${USER} has | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Tiv <tivadar.szemethy> |
| Component: | Current packages | Assignee: | 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: | --- | |
fixed in portage, thanks :) With this patch i see this error: gentoonet root # /etc/init.d/mldonkey start * Starting mldonkey... 13334: vecchia priorit 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. I correct this line:
renice -p $i ${NICE}
in
renice ${NICE} -p $i
With this patch mldonkey work well gentoonet root # /etc/init.d/mldonkey start * Re-caching dependency info (mtimes differ)... * Starting mldonkey... 13855: vecchia priorit 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 ] sorry about that- fixed ;) |
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: