[CentOS] Starting asterisk: /usr/sbin/safe_asterisk: line 86: ulimit: open files: cannot modify limit: Operation not permitted

Fri Jul 1 07:08:37 UTC 2011
Nicolas Thierry-Mieg <Nicolas.Thierry-Mieg at imag.fr>

Kaushal Shriyan wrote:
> Hi
>
> Please help me understand about the below issue ?
>
> [root at asterisk1 ~]# /etc/init.d/asterisk restart
> Stopping safe_asterisk:                                    [  OK  ]
> Shutting down asterisk:                                    [  OK  ]
> Starting asterisk: /usr/sbin/safe_asterisk: line 86: ulimit: open
> files: cannot modify limit: Operation not permitted

the message is pretty clear...
man ulimit
looks like that script is non-root when it tries to change the open 
files ulimit, and tries to change it beyond the hard limit. So, fails.
Or if it's not non-root it could be selinux interfering (?).