fix(updates): hoist reload_singbox_after_list_update and persist compiled rulesets to /etc/tachyon/rulesets

This commit is contained in:
Dushnilin
2026-09-12 18:24:50 +03:00
parent 12b07fd2fb
commit d72d3de706
12 changed files with 334 additions and 318 deletions
+5 -5
View File
@@ -764,6 +764,11 @@ function action_state_from_dirs() {
};
}
function release_dir_lock(lock_dir) {
remove_file(as_string(lock_dir) + "/pid");
command_success_from_args([ "rmdir", lock_dir ]);
}
function acquire_dir_lock(lock_dir) {
lock_dir = as_string(lock_dir);
let owner_pid = current_pid();
@@ -799,11 +804,6 @@ function acquire_dir_lock(lock_dir) {
return false;
}
function release_dir_lock(lock_dir) {
remove_file(as_string(lock_dir) + "/pid");
command_success_from_args([ "rmdir", lock_dir ]);
}
function service_enabled() {
return file_executable("/etc/rc.d/S99" + SERVICE_NAME);
}