mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Build safe_asterisk script substituting the proper path in (bug #4952, patch not used)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5,6 +5,7 @@ CONSOLE=yes # Whether or not you want a console
|
||||
#NOTIFY=ben@alkaloid.net # Who to notify about crashes
|
||||
MACHINE=`hostname` # To specify which machine has crashed when getting the mail
|
||||
DUMPDROP=/tmp
|
||||
ASTSBINDIR=__ASTERISK_SBIN_DIR__
|
||||
#
|
||||
# Don't fork when running "safely"
|
||||
#
|
||||
@@ -44,10 +45,10 @@ run_asterisk()
|
||||
if [ "$TTY" != "" ]; then
|
||||
cd /tmp
|
||||
stty sane < /dev/${TTY}
|
||||
asterisk ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
|
||||
${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
|
||||
else
|
||||
cd /tmp
|
||||
asterisk ${CLIARGS} ${ASTARGS}
|
||||
${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}
|
||||
fi
|
||||
EXITSTATUS=$?
|
||||
echo "Asterisk ended with exit status $EXITSTATUS"
|
||||
|
Reference in New Issue
Block a user