2018-03-21 11:57:53 +00:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2019-02-21 00:39:07 +00:00
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
|
|
|
|
"github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
2018-03-21 11:57:53 +00:00
|
|
|
func runDaemon(opts *daemonOptions) error {
|
|
|
|
daemonCli := NewDaemonCli()
|
|
|
|
return daemonCli.start(opts)
|
|
|
|
}
|
2019-02-21 00:39:07 +00:00
|
|
|
|
|
|
|
func initLogging(_, stderr io.Writer) {
|
|
|
|
logrus.SetOutput(stderr)
|
|
|
|
}
|