Daemon updates, backgrounding, and CLI integration
This commit is contained in:
@@ -7,5 +7,5 @@ import (
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
|
||||
return warewulfd.RunServer()
|
||||
return warewulfd.DaemonStart()
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user