Fix: Broaden pkill pattern to match 'screen.py' for stop command
This commit is contained in:
@@ -1760,7 +1760,7 @@ if ($type == "screen_control") {
|
|||||||
shell_exec($command);
|
shell_exec($command);
|
||||||
echo "Started";
|
echo "Started";
|
||||||
} elseif ($action == "stop") {
|
} elseif ($action == "stop") {
|
||||||
$command = 'sudo pkill -f "screen_control/screen.py"';
|
$command = 'sudo pkill -f "screen.py"';
|
||||||
shell_exec($command);
|
shell_exec($command);
|
||||||
echo "Stopped";
|
echo "Stopped";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user