Overhaul OpenRC service file and disable busy wait by default #834
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#834
Loading…
Reference in a new issue
No description provided.
Delete branch "Oneric/akkoma:openrc-upd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, soexport
wouldn't help here)5aeef6fd14
toa8a231c5b2
late addition: disable busy waits in default OpenRC and SystemD from-source service files (disclaimer: i only tested the OpenRC one)
openrc-updto Overhaul OpenRC service file and disable busy wait by defaulthuh i didn't even know ERL_AFLAGS was a thing
cool