Last active
November 26, 2019 09:50
-
-
Save clayrisser/10eeb1f46b3d362dffc178747ee00488 to your computer and use it in GitHub Desktop.
Increase Inotify
This file contains hidden or 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 | |
test -f /etc/sysctl.conf && \ | |
(sudo sed -i 's/fs.inotify.max_user_watches=[[:digit:]]*//g' /etc/sysctl.conf && \ | |
sudo sed -i '/^$/d' /etc/sysctl.conf && \ | |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p) || true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment