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
Member

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 to a8a231c5b2 2024-09-24 15:37:41 +00:00 Compare
Author
Member

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 merged commit 6475cf127e into develop 2024-09-24 23:50:48 +00:00
floatingghost deleted branch openrc-upd 2024-09-24 23:50:49 +00:00
Sign in to join this conversation.
No description provided.