I am suffering from occasional desktop freezes and am still investigating the cause. (Links forthcoming.) In the meantime I came across the following suggestion to cpulimit
the unity-panel-service
, which is working great so far!
sudo cpulimit -eb unity-panel-service -l 30
I would now like to configure cpulimit so that it:
- starts as soon as I log in
- runs in the background (no terminal required)
- if unity-panel-service restarts, it should discover and limit the new process
Is this possible?
Note: I am aware that this is a workaround to a desktop bug. My question is primarily about using cpulimit, rather than the bug/workaround. When I have a moment I will provide links relating to the bug itself so discussion on that front can happen elsewhere.