2021-08-23 13:14:53 +00:00
|
|
|
//go:build !windows
|
2018-03-21 11:57:53 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
2019-02-21 00:39:07 +00:00
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
|
2023-09-13 15:41:45 +00:00
|
|
|
"github.com/containerd/log"
|
2019-02-21 00:39:07 +00:00
|
|
|
)
|
|
|
|
|
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) {
|
2023-09-15 11:51:51 +00:00
|
|
|
log.L.Logger.SetOutput(stderr)
|
2019-02-21 00:39:07 +00:00
|
|
|
}
|