支持服务管理 (#456)

* Support running as a Windows service.

* Optimize startup logic contro

* When running in a Windows service environment, delegate the termination of the program to the win_service_event_loop function.

* Remove the use of std::ffi::OsString at the top.

* Support  service manager

* Move the service-related features to be implemented in easytier-cli.

* Add a command line option work-dir to specify the working directory
Adjust the error handling logic
This commit is contained in:
咸鱼而已
2024-11-16 09:01:58 +08:00
committed by GitHub
parent 4fc3ff8ce8
commit 9d455e22fa
8 changed files with 762 additions and 144 deletions

View File

@@ -152,4 +152,4 @@ pub fn setup_socket_for_win<S: AsRawSocket>(
}
Ok(())
}
}