![]() |
|
renice minim process - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Support (/forumdisplay.php?fid=4) +--- Thread: renice minim process (/showthread.php?tid=6658) |
renice minim process - lafuente - 13-08-2022 21:43 Hello, I'd like to renice minim server process at the system boot without make this by hand each time. Actually I issue : Code: pidof java 1 | xargs renice -20Should I place this command in the "runjaca.sh" script I use to launch minimserver ? Here is what I think about : Code: #!/bin/bashThank you, Manu RE: renice minim process - simoncn - 13-08-2022 22:20 Placing pidof after exec won't work because exec replaces the current shell and any subsequent commands in the shell script won't be run. Also, it seems simpler to use nice to launch java instead of launching java first and then using renice. RE: renice minim process - lafuente - 14-08-2022 14:41 Thank you, Can you please send me the correct syntax for this please ? Code: /bin/nice -20 exec taskset -c 5 java "$@"? RE: renice minim process - lafuente - 14-08-2022 16:26 final command is Code: exec taskset -c 5 /bin/nice -n -20 java "$@"tested OK This one launch minimserver on core 5 with high priority |