mirror of
https://github.com/Monadical-SAS/cubbi.git
synced 2025-12-20 20:29:06 +00:00
fix: remove the "mc stop" meant to be in the container, but not implemented
This commit is contained in:
@@ -195,8 +195,6 @@ mc session close <id>
|
|||||||
# Connect to an existing session
|
# Connect to an existing session
|
||||||
mc session connect <id>
|
mc session connect <id>
|
||||||
|
|
||||||
# Stop the current session (from inside the container)
|
|
||||||
mc stop
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Remote Management
|
### Remote Management
|
||||||
|
|||||||
@@ -411,21 +411,6 @@ def session_logs(
|
|||||||
console.print(logs)
|
console.print(logs)
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
|
||||||
def stop() -> None:
|
|
||||||
"""Stop the current MC session (from inside the container)"""
|
|
||||||
# Check if running inside a container
|
|
||||||
if not os.path.exists("/.dockerenv"):
|
|
||||||
console.print(
|
|
||||||
"[red]This command can only be run from inside a MC container[/red]"
|
|
||||||
)
|
|
||||||
return
|
|
||||||
|
|
||||||
# Stop the container from inside
|
|
||||||
console.print("Stopping the current session...")
|
|
||||||
os.system("kill 1") # Send SIGTERM to PID 1 (container's init process)
|
|
||||||
|
|
||||||
|
|
||||||
@driver_app.command("list")
|
@driver_app.command("list")
|
||||||
def list_drivers() -> None:
|
def list_drivers() -> None:
|
||||||
"""List available MC drivers"""
|
"""List available MC drivers"""
|
||||||
|
|||||||
Reference in New Issue
Block a user