aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Utility/Inotify.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Utility/Inotify.hs b/Utility/Inotify.hs
index c6faddadb..7329b5122 100644
--- a/Utility/Inotify.hs
+++ b/Utility/Inotify.hs
@@ -150,9 +150,11 @@ tooManyWatches hook dir = do
basewarning = "Too many directories to watch! (Not watching " ++ dir ++")"
withoutsysctl = ["Increase the value in /proc/sys/fs/inotify/max_user_watches"]
withsysctl n = let new = n * 10 in
- [ "Increase the limit by running:"
+ [ "Increase the limit permanently by running:"
, " echo " ++ maxwatches ++ "=" ++ show new ++
" | sudo tee -a /etc/sysctl.conf; sudo sysctl -p"
+ , "Or temporarily by running:"
+ , " sudo sysctl -w " ++ maxwatches ++ "=" ++ show new
]
querySysctl :: Read a => [CommandParam] -> IO (Maybe a)