Don't just hangup all calls whenever rccn gets an update

This commit is contained in:
Keith 2017-01-14 16:07:43 +01:00
parent 24a3b852cf
commit 070be4a9ce

View file

@ -202,7 +202,7 @@ class rhizo_base {
revision => 'master',
require => [ File['/var/rhizomatica'], Package['git'] ],
notify => [ Exec['locale-gen'],
Exec['restart-freeswitch'],
Exec['notify-freeswitch'],
Exec['restart-rapi'] ],
}
@ -244,6 +244,11 @@ class rhizo_base {
refreshonly => true,
}
exec { 'notify-freeswitch':
command => '/bin/echo 1 > /tmp/FS-dirty',
refreshonly => true,
}
exec { 'restart-freeswitch':
command => '/usr/bin/sv restart freeswitch',
refreshonly => true,