Various more updates around Warewulf service and erorr cleanup
This commit is contained in:
@@ -2,13 +2,14 @@ package start
|
||||
|
||||
import (
|
||||
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
if SetForeground {
|
||||
return warewulfd.RunServer()
|
||||
return errors.Wrap(warewulfd.RunServer(), "failed to start Warewulf server")
|
||||
} else {
|
||||
return warewulfd.DaemonStart()
|
||||
return errors.Wrap(warewulfd.DaemonStart(), "failed to start Warewulf server")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user