fix: update service to 2.1.0 and improve service installation for Unix systems (#6114)

* fix: update service to 2.1.0 and improve service installation for Unix systems

* fix: set GID environment variable during service installation on Linux

* Revert "fix: set GID environment variable during service installation on Linux"

This reverts commit 373aec579b.
This commit is contained in:
Tunglies
2026-01-19 14:02:25 +08:00
committed by GitHub
parent 2869a35f1e
commit d1649e3017
5 changed files with 12 additions and 24 deletions

View File

@@ -120,6 +120,12 @@ fn is_binary_admin() -> bool {
.unwrap_or(false)
}
#[inline]
#[cfg(unix)]
pub fn current_gid() -> u32 {
unsafe { libc::getgid() }
}
#[inline]
pub fn list_network_interfaces() -> Vec<String> {
let mut networks = Networks::new();