Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServeCmd = &cobra.Command{ Use: "snetd", Run: func(cmd *cobra.Command, args []string) { d, err := newDaemon() if err != nil { log.WithError(err).Error("Unable to initialize daemon") os.Exit(2) } d.start() defer d.stop() sigChan := make(chan os.Signal, 1) signal.Notify(sigChan, syscall.SIGTERM, syscall.SIGINT) <-sigChan log.Debug("exiting") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.