提交 e7e0b954 编写于 作者: D Davies Liu

force juicefs to run in foreground using JFS_FOREGROUND=1

上级 9cdfa8aa
......@@ -140,7 +140,7 @@ func mount(c *cli.Context) error {
logger.Infof("Data use %s", blob)
logger.Infof("Mounting volume %s at %s ...", format.Name, mp)
if c.Bool("background") {
if c.Bool("background") && os.Getenv("JFS_FOREGROUND") == "" {
err := makeDaemon(func(stage int) error {
if stage != 0 {
return nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册