When restarting FS, use shutdown elegant

rather than waitfor0calls script
This commit is contained in:
Wile E. Coyote 2019-05-04 07:35:17 +00:00
parent f47b73cfb7
commit fc37bbd4ef

View file

@ -6,14 +6,14 @@ RHIZO_SCRIPT="/home/rhizomatica/bin"
LOGFILE="/var/log/dirty.log" LOGFILE="/var/log/dirty.log"
if [ -a /tmp/FS-dirty -o -a /tmp/OSMO-dirty ]; then if [ -a /tmp/FS-dirty -o -a /tmp/OSMO-dirty ]; then
waitfor0calls
if [ -a /tmp/FS-dirty ] ; then if [ -a /tmp/FS-dirty ] ; then
logc "Freeswitch is tagged for restart due to RCCN update" 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 rm /tmp/FS-dirty
logc "freeswitch restarted" logc "freeswitch signalled to restart"
fi fi
if [ -a /tmp/OSMO-dirty ] ; then if [ -a /tmp/OSMO-dirty ] ; then
waitfor0calls
logc "NITB is tagged for restart due to Puppet update" logc "NITB is tagged for restart due to Puppet update"
sv restart osmo-nitb sv restart osmo-nitb
rm /tmp/OSMO-dirty rm /tmp/OSMO-dirty