mirror of
https://github.com/ceph/ceph
synced 2024-12-24 12:24:19 +00:00
8e37361b9a
Also, add comments because comments are cool.
17 lines
299 B
Bash
Executable File
17 lines
299 B
Bash
Executable File
#!/bin/sh
|
|
# If we're running as root, allow large amounts of open files.
|
|
USER=$(whoami)
|
|
|
|
# If a ulimit call fails, exit immediately.
|
|
set -e
|
|
|
|
if [ "$USER" = "root" ]
|
|
then
|
|
# Enable large number of open files
|
|
ulimit -n 16384
|
|
fi
|
|
|
|
# Enable core dumps for everything
|
|
ulimit -c unlimited
|
|
exec "$@"
|