fix(updates): hoist reload_singbox_after_list_update and persist compiled rulesets to /etc/tachyon/rulesets
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user