added pidfile option for wwclient
This commit is contained in:
22
cmd/wwclient/main.go
Normal file
22
cmd/wwclient/main.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/hpcng/warewulf/internal/app/wwclient"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
root := wwclient.GetRootCommand()
|
||||
|
||||
err := root.Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err)
|
||||
if wwclient.DebugFlag {
|
||||
fmt.Printf("\nSTACK TRACE: %+v\n", err)
|
||||
}
|
||||
os.Exit(255)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user