diff --git a/internal/pkg/configure/tftp.go b/internal/pkg/configure/tftp.go index b00f5928..7f87cd03 100644 --- a/internal/pkg/configure/tftp.go +++ b/internal/pkg/configure/tftp.go @@ -35,6 +35,11 @@ func TFTP() error { } } + if !controller.Tftp.Enabled { + wwlog.Printf(wwlog.INFO, "Warewulf does not auto start TFTP services due to disable by warewulf.conf\n") + os.Exit(0) + } + fmt.Printf("Enabling and restarting the TFTP services\n") err = util.SystemdStart(controller.Tftp.SystemdName) if err != nil {