I use syncthing via home-manager, so I have to bind-mount its mutable directories. The problem is that both the bind-mount and syncthing itself are started via systemd, so syncthing may start and recreate its configuration from scratch before bindfs gets a chance to do its thing.
My current solution is to turn the bindfs unit into a forking-type systemd unit and make the syncthing unit depend on it. Is there a known better solution? If not I will PR my patch.
I've created a follow-up PR (#62) to address the second part of your issue. Can you try it out without adding dependencies to the syncthing unit and see if it still works?
I use
syncthing
via home-manager, so I have to bind-mount its mutable directories. The problem is that both the bind-mount andsyncthing
itself are started via systemd, sosyncthing
may start and recreate its configuration from scratch beforebindfs
gets a chance to do its thing.My current solution is to turn the
bindfs
unit into aforking
-type systemd unit and make thesyncthing
unit depend on it. Is there a known better solution? If not I will PR my patch.