mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-29 15:23:45 +00:00
cmd/tailscaled: update installSystemDaemonWindows to set the correct system service depndencies
Fixes #16658 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
This commit is contained in:
parent
c572442548
commit
bfebf870ae
@ -25,6 +25,15 @@ func init() {
|
|||||||
uninstallSystemDaemon = uninstallSystemDaemonWindows
|
uninstallSystemDaemon = uninstallSystemDaemonWindows
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// serviceDependencies lists all system services that tailscaled depends on.
|
||||||
|
// This list must be kept in sync with the TailscaledDependencies preprocessor
|
||||||
|
// variable in the installer.
|
||||||
|
var serviceDependencies = []string{
|
||||||
|
"iphlpsvc",
|
||||||
|
"netprofm",
|
||||||
|
"WinHttpAutoProxySvc",
|
||||||
|
}
|
||||||
|
|
||||||
func installSystemDaemonWindows(args []string) (err error) {
|
func installSystemDaemonWindows(args []string) (err error) {
|
||||||
m, err := mgr.Connect()
|
m, err := mgr.Connect()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -48,6 +57,7 @@ func installSystemDaemonWindows(args []string) (err error) {
|
|||||||
ServiceType: windows.SERVICE_WIN32_OWN_PROCESS,
|
ServiceType: windows.SERVICE_WIN32_OWN_PROCESS,
|
||||||
StartType: mgr.StartAutomatic,
|
StartType: mgr.StartAutomatic,
|
||||||
ErrorControl: mgr.ErrorNormal,
|
ErrorControl: mgr.ErrorNormal,
|
||||||
|
Dependencies: serviceDependencies,
|
||||||
DisplayName: serviceName,
|
DisplayName: serviceName,
|
||||||
Description: "Connects this computer to others on the Tailscale network.",
|
Description: "Connects this computer to others on the Tailscale network.",
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user