Merge branch 'main' of github.com:Tensamin/Iota
This commit is contained in:
commit
9c594d6c67
1 changed files with 9 additions and 0 deletions
|
|
@ -251,6 +251,15 @@ pub async fn run_command(command: &str) {
|
||||||
log!("Failed to find user");
|
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");
|
log!("Unknown command");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue