inotify fix via task scheduler

Trying to use the following info:

bdlowBen

Oct '18

FYI here’s what works on a DS916+ running DSM 6.1.7: go to Control Panel > Task Scheduler. Create a New Task > Triggered Task > User-defined script.

In General Settings tab: give it a name (e.g. “Syncthing sysctl inotify fix”) and Event = Boot-up.

In the Task Settings tab: enter this in the Run Command box:

sh -c '(sleep 90 && echo 204800 > /proc/sys/fs/inotify/max_user_watches)&'

The sleep is to delay the setting to (hopefully) skip past any initialisation that Synology do at boot. Seems to work for me.

Click Ok to close the task dialog, then enable the task and hit the Save button.

So I created a scheduled task with the run command of

sh -c '(sleep 90 && echo 204800 > /proc/sys/fs/inotify/max_user_watches)&'

The status i get via email is:

Task Scheduler has completed a triggered task.

Task: Syncthing inotify fix Start time: Wed, 11 Aug 2021 19:18:13 GMT Stop time: Wed, 11 Aug 2021 19:18:13 GMT Current status: 0 (Normal) Standard output/error:

From DS220plus

But the inotify error persists.

Does this need tweaked? Perhaps DSM 7.0 made changes to location?

Error message seems to have finally gone away…

Maybe changing to using the root user vs the administrator level user made the difference?

Tweaking that would only for for root.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.