diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-14 02:19:16 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-14 02:19:16 +0000 |
commit | 3b61ac0907e8aba0cf76f9e70a3dd3e5f1a9b262 (patch) | |
tree | 299169168f180e4495ed13c93bfd10bec64530aa /contrib/scripts/safe_asterisk | |
parent | b6e4b33cceecb76ca4118b3a18af39c21cfd371f (diff) |
Build safe_asterisk script substituting the proper path in (bug #4952, patch not used)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib/scripts/safe_asterisk')
-rwxr-xr-x | contrib/scripts/safe_asterisk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk index 78013c9a0..2cfab55da 100755 --- a/contrib/scripts/safe_asterisk +++ b/contrib/scripts/safe_asterisk @@ -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" |