"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/test/6.sh" (16 Apr 2019, 1030 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 # checks a configuration with 'opensips -c' and 'opensips -C'
    3 
    4 # Copyright (C) 2007 1&1 Internet AG
    5 #
    6 # This file is part of opensips, a free SIP server.
    7 #
    8 # opensips is free software; you can redistribute it and/or modify
    9 # it under the terms of the GNU General Public License as published by
   10 # the Free Software Foundation; either version 2 of the License, or
   11 # (at your option) any later version
   12 #
   13 # opensips is distributed in the hope that it will be useful,
   14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16 # GNU General Public License for more details.
   17 #
   18 # You should have received a copy of the GNU General Public License
   19 # along with this program; if not, write to the Free Software
   20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
   21 
   22 CFG=2.cfg
   23 
   24 # start
   25 ../opensips -w . -c -f $CFG > /dev/null 2>&1
   26 ret=$?
   27 
   28 if [ "$ret" -eq 0 ] ; then
   29     ../opensips -C -f $CFG > /dev/null 2>&1
   30     ret=$?
   31 fi ;
   32 
   33 exit $ret