Elus1ve, I have written new version of cpulimit daemon. Replace step "2. WRITE CPULIMIT DAEMON FILE" from first post of this how-to with the file bellow. All other steps from how-to remains the same.
UPDATE: script deleted because of some bug. Please see script in new post bellow.
Daemon has two new variables: BLACK_PROCESSES_LIST and WHITE_PROCESSES_LIST.
If you would like only to limit process e.g "firefox" then set:
BLACK_PROCESSES_LIST="firefox"
If you would like to limit all processes except e.g. "firefox" set:
WHITE_PROCESSES_LIST="firefox"
If you would like to limit/exclude multiple processes just use "\|" separator (without quoting marks) between process names. Sample:
BLACK_PROCESSES_LIST="firefox|\gedit\|glchess"
WHITE_PROCESSES_LIST="firefox|\gedit\|glchess"
I haven't tested this new daemon in deep so I haven't changed first post's how-to. I would be very happy if someone out there could test this daemon and post some feed back.
Regards
Bookmarks