Skip to content

Commit

Permalink
issue #473: update README for setting fs.inotify.max_user_watches
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDKelley committed Dec 4, 2020
1 parent a5a0496 commit 573aaf0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,19 @@ $ bundle exec sass --watch # ... or whatever app is using Listen.

If you are running Debian, RedHat, or another similar Linux distribution, run the following in a terminal:
```
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
$ sudo echo fs.inotify.max_user_watches=524288 >> /etc/sysctl.conf
$ sudo sysctl -p
```
If you are running ArchLinux, search the `/etc/sysctl.d/` directory for config files with the setting:
```
$ grep -H -s "fs.inotify.max_user_watches" /etc/sysctl.d/*
/etc/sysctl.d/40-max_user_watches.conf:fs.inotify.max_user_watches=100000
```
If you are running ArchLinux, run the following command instead (see [here](https://www.archlinux.org/news/deprecation-of-etcsysctlconf/) for why):
Then change the setting in the file you found above to a higher value (see [here](https://www.archlinux.org/news/deprecation-of-etcsysctlconf/) for why):
```
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
$ sudo echo fs.inotify.max_user_watches=524288 > /etc/sysctl.d/40-max-user-watches.conf
$ sudo sysctl --system
```
Then paste it in your terminal and press on enter to run it.

#### The technical details
Listen uses `inotify` by default on Linux to monitor directories for changes.
Expand Down

0 comments on commit 573aaf0

Please sign in to comment.