mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
cmd/ctrld: ensure ctrld start after NetworkManager
This commit is contained in:
@@ -186,6 +186,11 @@ func initCLI() {
|
||||
if os.Args[1] == "service" {
|
||||
osArgs = os.Args[3:]
|
||||
}
|
||||
if runtime.GOOS == "linux" {
|
||||
sc.Dependencies = []string{
|
||||
"After=NetworkManager-wait-online.service",
|
||||
}
|
||||
}
|
||||
sc.Arguments = append([]string{"run"}, osArgs...)
|
||||
if dir, err := os.UserHomeDir(); err == nil {
|
||||
// WorkingDirectory is not supported on Windows.
|
||||
|
||||
Reference in New Issue
Block a user