From 4dfbd209a40b192ef0875d4e2bb1518794c25de5 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Thu, 3 May 2018 11:18:31 +0200 Subject: [PATCH] TT#36218 Verify that kam proxy is active before restart app_lua Change-Id: Iccbd34a7fd77766705777dc3f3e56d3b384875d4 --- debian/lua-ngcp-kamailio.postinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/lua-ngcp-kamailio.postinst b/debian/lua-ngcp-kamailio.postinst index 98ae3e1..bb6ec24 100644 --- a/debian/lua-ngcp-kamailio.postinst +++ b/debian/lua-ngcp-kamailio.postinst @@ -4,7 +4,10 @@ set -e case "$1" in configure) - ngcp-sercmd proxy app_lua.reload 0 || true + if [ $(systemctl is-active kamailio-proxy) = "active" ] ; then + ngcp-sercmd proxy app_lua.reload 0 || true + echo "Kamailio proxy module 'app_lua' reloaded" + fi ;; abort-upgrade|abort-remove|abort-deconfigure)