Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Facter.add(:ulimit) do
- setcode do
- proc_file = '/proc/self/limits'
- limits = File.readlines(proc_file)
- if limits.include?("Max open files")
- val = line.split[3]
- break
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment