// startDaemonCmd is a passthrough function for startDaemon. func startDaemonCmd(*cobra.Command, []string) { // Create the profiling directory if profiling is enabled. if config.Siad.Profile { go profile.StartContinuousProfile(config.Siad.ProfileDir) } // Start siad. startDaemon will only return when it is shutting down. err := startDaemon() if err != nil { fmt.Println(err) } }
// startDaemonCmd is a passthrough function for startDaemon. func startDaemonCmd(cmd *cobra.Command, _ []string) { // Create the profiling directory if profiling is enabled. if globalConfig.Siad.Profile { go profile.StartContinuousProfile(globalConfig.Siad.ProfileDir) } // Start siad. startDaemon will only return when it is shutting down. err := startDaemon(globalConfig) if err != nil { die(err) } }
// startDaemonCmd is a passthrough function for startDaemon. func startDaemonCmd(*cobra.Command, []string) { // Create the profiling directory if profiling is enabled. if globalConfig.Siad.Profile { go profile.StartContinuousProfile(globalConfig.Siad.ProfileDir) } // Process the config variables after they are parsed by cobra. config := processConfig(globalConfig) // Start siad. startDaemon will only return when it is shutting down. err := startDaemon(config) if err != nil { fmt.Println(err) } }
// startDaemonCmd is a passthrough function for startDaemon. func startDaemonCmd(cmd *cobra.Command, _ []string) { // Create the profiling directory if profiling is enabled. if globalConfig.Siad.Profile { go profile.StartContinuousProfile(globalConfig.Siad.ProfileDir) } // Process the config variables after they are parsed by cobra. config, err := processConfig(globalConfig) if err != nil { fmt.Fprintln(os.Stderr, err) cmd.Usage() os.Exit(exitCodeUsage) } // Start siad. startDaemon will only return when it is shutting down. err = startDaemon(config) if err != nil { die(err) } }