Index node database for daemon to make lookups always instantaneous
This commit is contained in:
11
internal/app/wwctl/server/restart/main.go
Normal file
11
internal/app/wwctl/server/restart/main.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package restart
|
||||
|
||||
import (
|
||||
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
warewulfd.DaemonStop()
|
||||
return warewulfd.DaemonStart()
|
||||
}
|
||||
Reference in New Issue
Block a user