syncthing: increase inotify limit
authorAlberto Bursi <bobafetthotmail@gmail.com>
Sat, 4 Jul 2020 22:43:53 +0000 (00:43 +0200)
committerPaul Spooren <mail@aparcar.org>
Sun, 5 Jul 2020 06:13:49 +0000 (20:13 -1000)
default inotify limits at 8k are
low for serious usage
and the GUI shows errors like
"Failed to start filesystem watcher
for folder XXXX"
increase them with this config file
as instructed by syncthing's FAQ.
https://docs.syncthing.net/users/
faq.html#inotify-limits

Signed-off-by: Alberto Bursi <bobafetthotmail@gmail.com>
[bumped PKG_RELEASE]
Signed-off-by: Paul Spooren <mail@aparcar.org>
utils/syncthing/Makefile
utils/syncthing/files/etc/sysctl.d/90-syncthing-inotify.conf [new file with mode: 0644]

index 7fb87931d3b063a85fdeee243e754c96e954b8a3..011b8afbf71c666292602cf68427546408133269 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=syncthing
 PKG_VERSION:=1.6.1
-PKG_RELEASE:=0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=syncthing-source-v$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/syncthing/syncthing/releases/download/v$(PKG_VERSION)
diff --git a/utils/syncthing/files/etc/sysctl.d/90-syncthing-inotify.conf b/utils/syncthing/files/etc/sysctl.d/90-syncthing-inotify.conf
new file mode 100644 (file)
index 0000000..1e65bf9
--- /dev/null
@@ -0,0 +1 @@
+fs.inotify.max_user_watches=204800