all_service_stop enable

This commit is contained in:
devdatt 2026-01-20 12:14:07 +05:30
parent a6ff867190
commit 0d7c968062
1 changed files with 1 additions and 3 deletions

View File

@ -204,7 +204,7 @@ function all_service_start()
$alloc = allocateCore($new["id"]); $alloc = allocateCore($new["id"]);
$core = (int)$alloc["cpu"]; $core = (int)$alloc["cpu"];
$node = (int)$alloc["node"]; $node = (int)$alloc["node"];
$new["service"] = "enable5"; $new["service"] = "enable";
$ffmpeg = 'numactl --cpunodebind=' . $node $ffmpeg = 'numactl --cpunodebind=' . $node
. ' --membind=' . $node . ' --membind=' . $node
. ' taskset -c ' . $core . ' taskset -c ' . $core
@ -255,8 +255,6 @@ function all_service_stop()
if (isset($new["service"]) && $new["service"] === "enable") { if (isset($new["service"]) && $new["service"] === "enable") {
$new["service"] = "disable"; $new["service"] = "disable";
} }
exec("sudo systemctl enable encoder@{$new["id"]}");
exec("sudo systemctl restart encoder@{$new["id"]}");
} }
unset($new); unset($new);
file_put_contents( file_put_contents(