supervisord 启动后 ulimit 参数未生效

#!/bin/bash
#
# supervisord   This scripts turns supervisord on
#
# Author:       Mike McGrath  (based off yumupdatesd)
#
# chkconfig:    - 95 04
#
# description:  supervisor is a process control utility.  It has a web based
#               xmlrpc interface as well as a few other nifty features.
# processname:  supervisord
# config: /etc/supervisord.conf
# pidfile: /var/run/supervisord.pid
#

# source function library
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
        ulimit -Hn 3002400
        ulimit -Sn 1502400
        ulimit -Hu 3000240
        ulimit -Su 1500240
        ulimit -S -c unlimited
        daemon supervisord
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/supervisord
        echo `ulimit -a` > /home/work/2
}

你可能感兴趣的:(Linux)