Run Syncthing as a Daemon on macOS ?

Hi ! I am quite new to syncthing !

I am currently setting up a Mac mini as centralized storage, and would like to sync my files between our family laptops and the Mac mini. But as the Mac mini will be tucked away with the storage drives and ideally no screen, I was hoping to configure Syncthing so that it runs as a “Daemon” ; meaning even if the screen is off and no user is logged in, the syncing still happens. Also let’s say there is a power outtage, as the Mac mini is setup to auto-start with power coming back, the syncing would automatically resume without manual intervention and without needing loging in after startup.

I know that it isn’t compatible with FileVault full disk encryption, so it is already turned off.

Can you tel me if this is the default behavior or if it is possible ?

Thanks for your help !

The default package includes a launchd config and a readme to use it. It’s how I roll on macOS.

Thank you for your answer !

Just to clarify because I’m a bit confused with the naming. The README mentions having Syncthing in LaunchAgents, and to my understanding (which could be wrong) LauchAgents are responsible for auto starting processes at session login, not before login, because those processes should be in the Launch Daemons… Do I have it correctly ? And can you confirm that your setup also runs before any login after macOS boot up or reboot ?

Ah, sorry, I didn’t read closely enough. You’ll indeed need to set up a LaunchDaemon, which should work fine as well.

No problem! Is it done following the same procedure as setting up the LaunchAgent ? And if I succeed, I would still be able to access the web interface when I’m logged in to control it ? I have never done anything like that actually so I am not shure at all of what needs to be done and if syncthing is made to be used like that or not…

If Syncthing is running, you can access the web interface on it the same as before, no matter how it was started.

1 Like