Explorar el Código

优化修改代码

niujiuru hace 1 mes
padre
commit
343800c501
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 2 0
      networkd.service/main.go
  2. 2 0
      timesyncd.service/main.go

+ 2 - 0
networkd.service/main.go

@@ -36,7 +36,9 @@ type program struct {
 
 // Start should not block. Do the actual work async.
 func (p *program) Start(s service.Service) error {
+	baseapp.SetOptDirs(true, true, false, false)
 	baseapp.InitPath()
+
 	logCfgFile, err := servicelib.EnsureDefaultLogConfig()
 	if err != nil {
 		return err

+ 2 - 0
timesyncd.service/main.go

@@ -38,7 +38,9 @@ type program struct {
 
 // Start should not block. Do the actual work async.
 func (p *program) Start(s service.Service) error {
+	baseapp.SetOptDirs(true, false, false, false)
 	baseapp.InitPath()
+
 	logCfgFile, err := servicelib.EnsureDefaultLogConfig()
 	if err != nil {
 		return err