#!/bin/bash

# Start up a second SGW instance

SGW2_CUSTOM_CONF="/proj/PhantomNet/dual_sgw/sgw2.xml"

SUDO="/usr/bin/sudo"
OEPCPATH="/opt/OpenEPC"
OEPCETC="$OEPCPATH/etc"
OEPCBIN="$OEPCPATH/bin"

SGW2_CONF_PATH="sgw.xml"

$SUDO $OEPCBIN/run_wharf.pl sgw \
    || { echo "Could not start secondary SGW wharf process!" && exit 1; }

echo "Second SGW wharf process started."
exit 0;
