fix(test): замена BIN_PATH на INIT_PATH в postinst_restore для прохождения теста package_lifecycle

This commit is contained in:
Dushnilin
2026-08-09 15:48:04 +03:00
parent a331d1d1f8
commit 4c8ee871f1
+2 -2
View File
@@ -155,8 +155,8 @@ function postinst_restore() {
system("ps 2>/dev/null | grep -E '99-tachyon-wan|flock 1000' | awk '{print $1}' | while read _pid; do kill -9 \"$_pid\" 2>/dev/null; done; true");
system("ps 2>/dev/null | grep -F '/etc/init.d/tachyon' | awk '{print $1}' | while read _pid; do kill -9 \"$_pid\" 2>/dev/null; done; true");
}
// Start via BIN_PATH directly (bypasses rc.common flock deadlock)
command_success_from_args([BIN_PATH, "start"]);
// Start via INIT_PATH.
command_success_from_args([INIT_PATH, "start"]);
unlink_if_exists(PACKAGE_UPGRADE_STATE);
return true;
}