You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
506 B
Go

package cmd
import (
"git.cijber.net/zer.ooo/service"
"github.com/spf13/cobra"
)
var daemonCmd = &cobra.Command{
Use: "daemon",
Short: "Starts the zer.ooo service daemon",
Long: "Will start running the zer.ooo service daemon, keeping OpenVPN up",
Run: func(cmd *cobra.Command, args []string) {
config, err := service.LoadConfig(ConfigPath)
service.Check(err, "Failed loading config, err: %s", err)
mgmt := service.NewManager(*config)
mgmt.Init()
mgmt.Daemon()
},
}
func init() {
}