juicefs icon indicating copy to clipboard operation
juicefs copied to clipboard

Support: run JuiceFS in background in Windows

Open diluga opened this issue 2 years ago • 1 comments

JuiceFS does not run in the background of Windows as of now。

https://github.com/juicedata/juicefs/blob/main/cmd/mount_windows.go#L48

func makeDaemon(c *cli.Context, name, mp string, m meta.Meta) error {
	logger.Warnf("Cannot run in background in Windows.")
	return nil
}

It is recommended to use the following tools to achieve cross-platform compatibility.

https://github.com/kardianos/service

diluga avatar Mar 10 '22 02:03 diluga

As a workaround, you could use NSSM run JuiceFS as a Windows service. There's a user guide (written in Chinese) show how to do this (thanks @diluga).

xiaogaozi avatar Mar 11 '22 04:03 xiaogaozi