#!/bin/bash
#
rp=`realpath $0 | rev | cut -f2- -d'/' | rev`
cd $rp
echo "Try to restart s4igw"
#sudo killall s4igw
killall s4igw
sleep 1
#sudo -E nohup ./s4igw >/dev/null 2>&1 &
nohup ./s4igw >$0.out 2>&1 &
sleep 2
exit 0
