Daemon updates, backgrounding, and CLI integration

This commit is contained in:
Gregory Kurtzer
2020-12-12 23:50:38 -08:00
parent 90246f227f
commit f1706a4a0e
6 changed files with 123 additions and 6 deletions

View File

@@ -7,5 +7,5 @@ import (
func CobraRunE(cmd *cobra.Command, args []string) error {
return warewulfd.RunServer()
return warewulfd.DaemonStart()
}

View File

@@ -1,12 +1,11 @@
package status
import (
"fmt"
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
"github.com/spf13/cobra"
)
func CobraRunE(cmd *cobra.Command, args []string) error {
fmt.Printf("Not implemented yet\n")
warewulfd.DaemonStatus()
return nil
}

View File

@@ -1,11 +1,11 @@
package stop
import (
"fmt"
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
"github.com/spf13/cobra"
)
func CobraRunE(cmd *cobra.Command, args []string) error {
fmt.Printf("Not implemented yet\n")
warewulfd.DaemonStop()
return nil
}