path: asterisk_1:22.8.2+dfsg+~cs6.15.60671435-1/tests/CI/setupRealtime.sh fi POSTGRES_PID=`pidof postgres || : ` if [ -z "$POSTGRES_PID" ] ; then echo "Postgres isn't running. It must be started manually before this test can continue." path: asterisk_1:22.8.2+dfsg+~cs6.15.60671435-1/tests/CI/setupRealtime.sh set -e POSTGRES_PID=`pidof postgres || : ` if [ -z "$POSTGRES_PID" ] ; then path: asterisk_1:22.8.2+dfsg+~cs6.15.60671435-1/contrib/scripts/ast_logescalator LOG_DIR=/var/log/asterisk if [ "$(pidof asterisk)" != "" ] ; then CONFIG_DIR=`asterisk -rx "core show settings" | sed -n -r -e "s/^\s*Configuration\s+directory:\s+(.*)$/\1/gp"` LOG_DIR=`asterisk -rx "core show settings" | sed -n -r -e "s/^\s*Log\s+directory:\s+(.*)$/\1/gp"` path: asterisk_1:22.8.2+dfsg+~cs6.15.60671435-1/contrib/init.d/rc.mandriva.asterisk ;; status) succeeded=`pidof asterisk|awk '{print NF}'` if [ $succeeded = "0" ]; then echo "Asterisk is not running" path: asterisk_1:22.8.2+dfsg+~cs6.15.60671435-1/contrib/init.d/rc.mandriva.asterisk run_asterisk >/dev/null 2>&1 & sleep 2 # Give it time to die succeeded=`pidof asterisk|awk '{print NF}'` if [ $succeeded = "0" ]; then failure