When trying to mount on OSX using --daemon (background mode) the mount fails with the error:
Preformatted textrclone[24335]: background mode not supported on darwin platform
Of course, adding an ampersand at the end of the rclone mount command in Terminal also runs rclone in a kind of background mode.
But my understanding is that:
Using the ampersand only returns focus to the Terminal command prompt, but rclone is still linked to that instance of Terminal. So when you close Terminal, the linked rclone background process would also close.
Whereas using a real daemon makes the rclone service run independently of a Terminal instance.
Is this how the --daemon option works? Ie. creates an independent daemon?
If so, how hard is it to make this available for OSX as well?
What --daemon mode does is detatch from the terminal. However you can do this manually - see this stack overflow question (not the first answer).
The reason why this doesn’t work on macOS is that the library rclone uses - go-daemon only works on macOS with cgo and I normally cross compile the binaries so they don’t have cgo support.
Apologies for the delay in testing - have been offline.
I have tested this on High Sierra and it doesn’t seem to work. After adding the --daemon flag to the mount command, the mount works fine but Terminal never returns the prompt. ie. Same as not using the --daemon flag.