Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938972 - sci-misc/boinc: Support running BOINC client under OpenRC process supervision with supervise-daemon
Summary: sci-misc/boinc: Support running BOINC client under OpenRC process supervision...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-03 13:02 UTC by Austin S. Hemmelgarn
Modified: 2024-09-29 16:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated OpenRC script with support for using supervise-daemon. (boinc,4.68 KB, text/plain)
2024-09-03 13:02 UTC, Austin S. Hemmelgarn
Details

Note You need to log in before you can comment on or make changes to this bug.
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.