summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-07 00:47:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-07 00:47:09 -0400
commit5d4e09199c757a34d0a9bf9b073dd13481b88cc1 (patch)
treef99333ee6f7de92db53bf55fe21232b48f2da2fd /Utility
parentd5de27ff40544bfb4d526eebce5e698a5efe35d1 (diff)
update message based on user feedback
Diffstat (limited to 'Utility')
-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)