From fddf95e66a84cf21e28b4bde1e59744b8bb36caf Mon Sep 17 00:00:00 2001 From: Keith Whyte Date: Wed, 27 Mar 2019 12:53:01 +0000 Subject: [PATCH] utils: restart FS with fsctl shutdown elegant --- modules/rhizo_base/files/bin/check_dirty.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/rhizo_base/files/bin/check_dirty.sh b/modules/rhizo_base/files/bin/check_dirty.sh index c85568a..5abd3aa 100755 --- a/modules/rhizo_base/files/bin/check_dirty.sh +++ b/modules/rhizo_base/files/bin/check_dirty.sh @@ -6,14 +6,14 @@ RHIZO_SCRIPT="/home/rhizomatica/bin" LOGFILE="/var/log/dirty.log" if [ -a /tmp/FS-dirty -o -a /tmp/OSMO-dirty ]; then - waitfor0calls if [ -a /tmp/FS-dirty ] ; then logc "Freeswitch is tagged for restart due to RCCN update" - /usr/bin/fs_cli -x "fsctl shutdown asap" + /usr/bin/fs_cli -x "fsctl shutdown elegant" rm /tmp/FS-dirty - logc "freeswitch restarted" + logc "freeswitch signalled to restart" fi if [ -a /tmp/OSMO-dirty ] ; then + waitfor0calls logc "NITB is tagged for restart due to Puppet update" sv restart osmo-nitb rm /tmp/OSMO-dirty