From e308ca7054793292c212c127e15ecaad13351d4f Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 8 Aug 2013 17:10:40 +0200 Subject: [PATCH] bin/restart_log.sh: Use the new kamailio RPC command to reset the msgid --- bin/restart_log.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/bin/restart_log.sh b/bin/restart_log.sh index e0026b05..6850f645 100755 --- a/bin/restart_log.sh +++ b/bin/restart_log.sh @@ -1,16 +1,6 @@ #!/bin/bash -invoke-rc.d kamailio-proxy stop -if [[ $(ps aux | grep kamailio.proxy | wc -l) -ne 1 ]]; then - echo "$(date) - killing kamailio-proxy" - for pid in $(ps aux | grep ^kamailio| grep kamailio.proxy | cut -d' ' -f2 | xargs); do - kill -9 $pid - done -fi +ngcp-sercmd proxy dbg.reset_msgid rm -rf /var/log/ngcp/kamailio-proxy.log rm -rf /var/log/ngcp/sems.log rm -rf /var/log/ngcp/kamailio-lb.log invoke-rc.d rsyslog restart -invoke-rc.d kamailio-proxy start -if [[ $(ps aux | grep kamailio.proxy | wc -l) -eq 1 ]]; then - exit 1 -fi \ No newline at end of file