mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02: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" {
|
if os.Args[1] == "service" {
|
||||||
osArgs = os.Args[3:]
|
osArgs = os.Args[3:]
|
||||||
}
|
}
|
||||||
|
if runtime.GOOS == "linux" {
|
||||||
|
sc.Dependencies = []string{
|
||||||
|
"After=NetworkManager-wait-online.service",
|
||||||
|
}
|
||||||
|
}
|
||||||
sc.Arguments = append([]string{"run"}, osArgs...)
|
sc.Arguments = append([]string{"run"}, osArgs...)
|
||||||
if dir, err := os.UserHomeDir(); err == nil {
|
if dir, err := os.UserHomeDir(); err == nil {
|
||||||
// WorkingDirectory is not supported on Windows.
|
// WorkingDirectory is not supported on Windows.
|
||||||
|
|||||||
Reference in New Issue
Block a user