Implement remote execution
This commit is contained in:
+11
@@ -28,6 +28,8 @@ mod inventory;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod cm_popup;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod exec;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod service;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod unattended_password;
|
||||
@@ -278,6 +280,15 @@ fn run_server() {
|
||||
}
|
||||
});
|
||||
|
||||
// Start the PowerShell remote-exec worker. Subscribes to the
|
||||
// broadcast channel in the vendored sync layer; the channel is
|
||||
// shared in-process so the worker MUST run in this --server process
|
||||
// (where sync.rs lives), not the --service supervisor. The worker
|
||||
// is idle until an admin dispatches an exec from the dashboard.
|
||||
// Gated server-side on peer.managed=1 + strategy.enable-remote-exec.
|
||||
#[cfg(target_os = "windows")]
|
||||
exec::start();
|
||||
|
||||
// `start_server` is `#[tokio::main]` and runs forever. (is_server=true,
|
||||
// no_server=false). It boots the default IPC server, input service,
|
||||
// rendezvous mediator, and heartbeat sync.
|
||||
|
||||
Reference in New Issue
Block a user