Merge branch 'main' of github.com:Tensamin/Iota

This commit is contained in:
Alex Emmet 2026-03-09 22:23:36 +01:00
commit 9c594d6c67

View file

@ -251,6 +251,15 @@ pub async fn run_command(command: &str) {
log!("Failed to find user");
}
}
["reload"] | ["restart"] => {
log!("Restarting");
*RELOAD.write().await = true;
*SHUTDOWN.write().await = true;
}
["shutdown"] | ["stop"] => {
log!("Shutting down");
*SHUTDOWN.write().await = true;
}
_ => {
log!("Unknown command");
}