Make the H.323 channel abort immediately on assertion failure.

The undesired default behavior is to interactively ask what to do.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5626 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2013-08-19 13:16:29 +00:00
parent bc65721534
commit 1a18226670
4 changed files with 4 additions and 1 deletions

View File

@ -75,6 +75,7 @@ do_start()
exit 1
fi
export PWLIB_ASSERT_ACTION=C
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--exec $DAEMON --test >>/dev/null \
|| return 1

View File

@ -18,6 +18,7 @@ BINARY=${BINARY:-/usr/bin/yate}
start() {
ebegin "Starting ${SVCNAME}"
export PWLIB_ASSERT_ACTION=C
start-stop-daemon --start --exec "${BINARY}" \
--pidfile "${PIDFILE}" -- \
-d -p "${PIDFILE}" ${OPTS}

View File

@ -19,6 +19,7 @@ RETVAL=0
start() {
echo -n $"Starting YATE: "
export PWLIB_ASSERT_ACTION=C
daemon yate -d -p /var/run/yate.pid $OPTS
RETVAL=$?
echo

2
run.in
View File

@ -58,4 +58,4 @@ for opt in $@; do
esac
done
LD_LIBRARY_PATH=.@H323_RUN@:$LD_LIBRARY_PATH exec $yate $set_conf $set_mods $set_share "$@"
LD_LIBRARY_PATH=.@H323_RUN@:$LD_LIBRARY_PATH PWLIB_ASSERT_ACTION=C exec $yate $set_conf $set_mods $set_share "$@"