Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 938972

Summary: sci-misc/boinc: Support running BOINC client under OpenRC process supervision with supervise-daemon
Product: Gentoo Linux Reporter: Austin S. Hemmelgarn <ahferroin7>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: UNCONFIRMED ---    
Severity: normal CC: navi, proxy-maint, sven.eden
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Updated OpenRC script with support for using supervise-daemon.

Description Austin S. Hemmelgarn 2024-09-03 13:02:26 UTC
Created attachment 901954 [details]
Updated OpenRC script with support for using supervise-daemon.

The boinc_client program itself needs no special handling to run correctly under a process supervision tool like the supervise-daemon program provided as part of OpenRC. Despite this, the current OpenRC init script for sci-misc/boinc hard-codes usage of start-stop-daemon and thus does not support running boinc_client like this without user modification of the init script.

I’ve attached a modified copy of the existing OpenRC init script to this bug that includes the changes I’m currently using to run boinc_client under process supervision. They just require the user to set `supervisor="supervise-daemon"` in `/etc/conf.d/boinc`, and preserve existing behavior if that is not set. I’ve been using these modifications for roughly six weeks now without issues.
Comment 1 Anna 2024-09-29 16:39:53 UTC
instead of checking for supervisor in start, we should move the ARGS logic to start_pre, and remove the start definition. openrc already ships a default start that selects the proper supervisor based on the flag.