* usr/bin/byobu: LP: #713879

- add ulimit checks to byobu -v
This commit is contained in:
Dustin Kirkland 2011-11-08 18:26:58 -06:00
commit 7320864d88
2 changed files with 6 additions and 0 deletions

2
debian/changelog vendored
View file

@ -20,6 +20,8 @@ byobu (4.46) unreleased; urgency=low
- reorder byobu-ctrl-a to offer screen first, then emacs mode
- make byobu-ctrl-a slighty more compatible with tmux (not quite
there yet...)
* usr/bin/byobu: LP: #713879
- add ulimit checks to byobu -v
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 31 Oct 2011 09:46:46 -0400

View file

@ -49,6 +49,10 @@ if [ "$#" = "1" ]; then
-v|--version)
echo "$PKG version $VERSION"
exec $BYOBU_BACKEND $BYOBU_ARG_VERSION
# Check ulimits
[ $(ulimit -n) -ge 15 ] || echo "WARNING: ulimit -n is too low" 1>&2
[ $(ulimit -u) -ge 1600 ] || echo "WARNING: ulimit -u is too low" 1>&2
exit 0
;;
esac