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:
paulc 2012-08-22 15:19:34 +00:00
parent 8f33870634
commit ef4b1e4255
4 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
DESC="YATE"
NAME=yate
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
SCRIPTNAME=/etc/init.d/$NAME
@ -81,7 +81,7 @@ do_start()
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--nicelevel $NICE_LEVEL \
--user $YATE_USER --group $YATE_GROUP \
--exec $DAEMON -- $DAEMON_ARGS \
--exec $DAEMON -- -d -p $PIDFILE $DAEMON_ARGS \
|| return 2
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend

View File

@ -4,7 +4,7 @@
NO_START=1
# 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="root"

View File

@ -12,7 +12,7 @@ depend() {
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}
BINARY=${BINARY:-/usr/bin/yate}

View File

@ -10,7 +10,7 @@
#
# Extra Yate command line options
OPTS="-rs -vvv -l /var/log/yate"
OPTS="-F -s -r -l /var/log/yate -vvv"
# Source function library.
. /etc/rc.d/init.d/functions