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
Showing only changes of commit 2901fda29c - Show all commits

View file

@ -58,6 +58,12 @@ start_pre() {
|| eerror "Logfile(s) not owned by $command_user, or not a file!" || eerror "Logfile(s) not owned by $command_user, or not a file!"
checkpath --writable "$output_log" "$error_log" \ checkpath --writable "$output_log" "$error_log" \
|| eerror "Logfile(s) not writable!" || eerror "Logfile(s) not writable!"
# If a recompile is needed perform it with lowest prio
# (delaying the actual start) to avoid hogging too much
# CPU from other services
cd "$directory"
doas -u "${command_user%%:*}" env MIX_ENV="$MIX_ENV" nice -n 19 "$command" compile
} }
healthcheck() { healthcheck() {