su and init script

If one intends to use init scripts for startup purposes (or simply wants to be able to start the server utilizing su command it’s necessary to adjust PAM configuration by modifying /etc/pam.d/su file and uncomment following line:

session    required   pam_limits.so

Afterwards that init scripts will respect configured limits.