Because the configuration snippet /usr/lib/systemd/system.conf.d/50-nfiles.conf is installed, which sets DefaultLimitNOFILE=4096, you have to override the value with a configuration snippet in /etc/systemd/system.conf.d/ instead. Overriding DefaultLimitNOFILE in /etc/systemd/system.conf has no effect due to systemd’s config precedence order.
I am a Syncthing user
whenever I boot and start Syncthing I get an inotify error
from the Syncthing docs (FAQ — Syncthing documentation) I am told to run:
echo “fs.inotify.max_user_watches=204800” | sudo tee -a /etc/sysctl.conf
and further it says
This only takes effect after a reboot. To adjust the limit immediately, run:
sudo sh -c ‘echo 204800 > /proc/sys/fs/inotify/max_user_watches’
It does work, but I need to repeat on every login.
Using Debian for several years, this is different, I do it once and never have to repeat later.
Is there some way to retain that first command?
Thanks, Peter
forgive me if this is obvious, but I am a GUI Guy and have only been using ClearOS for about a week