|
|
@ -42,7 +42,13 @@ TT_WRAPPER="${HELPER}/tt2-wrapper"
|
|
|
|
|
|
|
|
|
|
|
|
# Kill all previous started tt2-daemon Perl processes if they were not stopped properly
|
|
|
|
# Kill all previous started tt2-daemon Perl processes if they were not stopped properly
|
|
|
|
killall tt2-daemon 2>/dev/null || true
|
|
|
|
killall tt2-daemon 2>/dev/null || true
|
|
|
|
rm -f /var/run/ngcpcfg.port
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "${NGCP_PORTFILE:-}" ] ; then
|
|
|
|
|
|
|
|
log_debug "Using $NGCP_PORTFILE as tt2-daemon port file as set via 'NGCP_PORTFILE'."
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
NGCP_PORTFILE='/var/run/ngcpcfg.port'
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f "${NGCP_PORTFILE}"
|
|
|
|
|
|
|
|
|
|
|
|
# Start new tt2-daemon Perl process
|
|
|
|
# Start new tt2-daemon Perl process
|
|
|
|
"${HELPER}"/tt2-daemon --quiet
|
|
|
|
"${HELPER}"/tt2-daemon --quiet
|
|
|
@ -71,7 +77,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
# Kill all previous started tt2-daemon Perl processes
|
|
|
|
# Kill all previous started tt2-daemon Perl processes
|
|
|
|
killall tt2-daemon 2>/dev/null || true
|
|
|
|
killall tt2-daemon 2>/dev/null || true
|
|
|
|
rm -f /var/run/ngcpcfg.port
|
|
|
|
rm -f "${NGCP_PORTFILE}"
|
|
|
|
|
|
|
|
|
|
|
|
exit "$RC"
|
|
|
|
exit "$RC"
|
|
|
|
|
|
|
|
|
|
|
|