These 2 things in the init script would be a nice to have: $ for url in $(boinccmd --get_project_status | sed -n 's/\s*master URL: //p'); do boinccmd --project ${url} suspend; done $ for url in $(boinccmd --get_project_status | sed -n 's/\s*master URL: //p'); do boinccmd --project ${url} resume; done
Created attachment 364844 [details, diff] init.d patch q&d works here
hhm, this is much better, b/c boinc automatically reads the password from the file /gui_rpc_auth.cfg then : suspend() { cd $RUNTIMEDIR for url in $(boinccmd --get_project_status | sed -n 's/\s*master URL: //p'); do boinccmd --project ${url} suspend; done } resume() { cd $RUNTIMEDIR for url in $(boinccmd --get_project_status | sed -n 's/\s*master URL: //p'); do boinccmd --project ${url} resume; done } IMO this could also simplify the other parts of the init.c script -and- BTW would avoid, that the password can be seen in the process list !
The init script got reviewed and updated. Only boinc-7.2.* needs the password on the command line, versions 7.4.* and 7.6.* no longer need it. As for the suspend/resume feature, you want to have the ability for the user to be able to suspend all projects if not running the GUI, right?
IIRC, the use case was to hold on BOINC while running emerge, so - yes, w/o GUI.
Sorry for the long delay. I know it is very very overdue, but at least I have finally managed to put the new functions into a commit for a pull request. https://github.com/gentoo/gentoo/pull/2768/commits/5866ce9875cfde0e7ff7f2ef0dd5a0bb83bcd85e
The latest init script should be able to suspend and resume all projects without the need for a gui. Thank you very much for your suggestion! And sorry again for the long delay.