#!/bin/bash
#
# supervisord This scripts turns supervisord on
#
# Author: Mike McGrath <mmcgrath@redhat.com> (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
}
supervisord 启动后 ulimit 参数未生效
最新推荐文章于 2024-04-21 10:10:55 发布