Overhaul OpenRC service file and disable busy wait by default #834

Merged
floatingghost merged 3 commits from Oneric/akkoma:openrc-upd into develop 2024-09-24 23:50:48 +00:00
Owner

Using conf.d files for user configuration is standard practice with OpenRC; no need to edit service files.
Also pass env vars the proper way with --env instead of exporting in the service script.
Log output is now saved to a file instead of disappearing into the ether.

Additionally use pre_start to run potentially needed recompiles with lower CPU priority as this can otherwise hog all CPU cores starving other services for a while.
(Note doas cleans the env unless the system administrator changed its config, so export wouldn't help here)

Using `conf.d` files for user configuration is standard practice with OpenRC; no need to edit service files. Also pass env vars the proper way with `--env` instead of exporting in the service script. Log output is now saved to a file instead of disappearing into the ether. Additionally use `pre_start` to run potentially needed recompiles with lower CPU priority as this can otherwise hog all CPU cores starving other services for a while. *(Note `doas` cleans the env unless the system administrator changed its config, so `export` wouldn't help here)*
Oneric force-pushed openrc-upd from 5aeef6fd14
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
to a8a231c5b2
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
2024-09-24 15:37:41 +00:00
Compare
Author
Owner

late addition: disable busy waits in default OpenRC and SystemD from-source service files (disclaimer: i only tested the OpenRC one)

late addition: disable busy waits in default OpenRC and SystemD from-source service files *(disclaimer: i only tested the OpenRC one)*
Oneric changed title from openrc-upd to Overhaul OpenRC service file and disable busy wait by default 2024-09-24 21:43:31 +00:00

huh i didn't even know ERL_AFLAGS was a thing

cool

huh i didn't even know ERL_AFLAGS was a thing cool
floatingghost deleted branch openrc-upd 2024-09-24 23:50:49 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma!834
No description provided.