Created
February 23, 2019 15:32
-
-
Save funkyfisch/db3ac2589b897cfab6f3667c19df28d2 to your computer and use it in GitHub Desktop.
ENOSPC resolution for file watchers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Change the maximum amount of watchers and persist the setting | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
# Arch Linux alternative command | |
# echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.d/99-sysctl.conf | |
# Details: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment