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