mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/ctrld: ensure ctrld start after NetworkManager
This commit is contained in:
committed by
Cuong Manh Le
parent
8c47ffb5ec
commit
1c2cd555bd
@@ -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