mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-05 07:50:06 +07:00
chore
This commit is contained in:
@ -7,7 +7,6 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
"os"
|
||||
)
|
||||
@ -18,7 +17,8 @@ var (
|
||||
Short: "Validate dae config",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
if cfgFile == "" {
|
||||
logrus.Fatalln("Argument \"--config\" or \"-c\" is required but not provided.")
|
||||
fmt.Println("Argument \"--config\" or \"-c\" is required but not provided.")
|
||||
os.Exit(1)
|
||||
}
|
||||
// Read config from --config cfgFile.
|
||||
_, err := readConfig(cfgFile)
|
||||
|
@ -11,7 +11,7 @@ LimitNPROC=500
|
||||
LimitNOFILE=1000000
|
||||
ExecStartPre=/usr/bin/dae validate -c /etc/dae/config.dae
|
||||
ExecStart=/usr/bin/dae run --disable-timestamp -c /etc/dae/config.dae
|
||||
Restart=on-failure
|
||||
Restart=on-abnormal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user