Added -F to init scripts to increase file handle limit.
Moved the -d and -p options out of Debian's user preferences. Unified optional daemon command line across package types. git-svn-id: http://yate.null.ro/svn/yate/trunk@5238 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
8f33870634
commit
ef4b1e4255
|
@ -21,7 +21,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
||||||
DESC="YATE"
|
DESC="YATE"
|
||||||
NAME=yate
|
NAME=yate
|
||||||
DAEMON=/usr/bin/$NAME
|
DAEMON=/usr/bin/$NAME
|
||||||
DAEMON_ARGS="-ds -p /var/run/yate.pid -l /var/log/yate -r -vvv"
|
DAEMON_ARGS="-F -s -r -l /var/log/yate -vvv"
|
||||||
PIDFILE=/var/run/$NAME.pid
|
PIDFILE=/var/run/$NAME.pid
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ do_start()
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
||||||
--nicelevel $NICE_LEVEL \
|
--nicelevel $NICE_LEVEL \
|
||||||
--user $YATE_USER --group $YATE_GROUP \
|
--user $YATE_USER --group $YATE_GROUP \
|
||||||
--exec $DAEMON -- $DAEMON_ARGS \
|
--exec $DAEMON -- -d -p $PIDFILE $DAEMON_ARGS \
|
||||||
|| return 2
|
|| return 2
|
||||||
# Add code here, if necessary, that waits for the process to be ready
|
# Add code here, if necessary, that waits for the process to be ready
|
||||||
# to handle requests from services started subsequently which depend
|
# to handle requests from services started subsequently which depend
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
NO_START=1
|
NO_START=1
|
||||||
|
|
||||||
# arguments passed to yate
|
# arguments passed to yate
|
||||||
DAEMON_ARGS="-ds -p /var/run/yate.pid -l /var/log/yate -r -vvv"
|
DAEMON_ARGS="-F -s -r -l /var/log/yate -vvv"
|
||||||
|
|
||||||
# yate user and group
|
# yate user and group
|
||||||
YATE_USER="root"
|
YATE_USER="root"
|
||||||
|
|
|
@ -12,7 +12,7 @@ depend() {
|
||||||
use mysql postgresql wanpipe zaptel
|
use mysql postgresql wanpipe zaptel
|
||||||
}
|
}
|
||||||
|
|
||||||
OPTS=${OPTS:- -rs -vvv -l /var/log/yate}
|
OPTS=${OPTS:- -F -s -r -l /var/log/yate -vvv}
|
||||||
PIDFILE=${PIDFILE:-/var/run/${SVCNAME}.pid}
|
PIDFILE=${PIDFILE:-/var/run/${SVCNAME}.pid}
|
||||||
BINARY=${BINARY:-/usr/bin/yate}
|
BINARY=${BINARY:-/usr/bin/yate}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Extra Yate command line options
|
# Extra Yate command line options
|
||||||
OPTS="-rs -vvv -l /var/log/yate"
|
OPTS="-F -s -r -l /var/log/yate -vvv"
|
||||||
|
|
||||||
# Source function library.
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
Loading…
Reference in New Issue