Skip to content

Commit

Permalink
nebd: set nofile soft limit to hard limit
Browse files Browse the repository at this point in the history
Signed-off-by: Hanqing Wu <[email protected]>
  • Loading branch information
wu-hanqing committed Sep 25, 2023
1 parent 6704f16 commit 17070cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nebd/nebd-package/usr/bin/nebd-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ STARTED_AS_ROOT=false
USERS_FILE=/etc/nebd/users
USERS=()

# set nofile soft limit to hard limit
# we found that soft limit of nebd-daemon and nebd-server are 1024 after system reboot
# even /etc/security/limits.conf already set nofile limit to large number
ulimit -Sn $(ulimit -Hn)

if [[ $(id -u) -eq 0 ]]; then
STARTED_AS_ROOT=true
fi
Expand Down

0 comments on commit 17070cf

Please sign in to comment.