Don't restart nitb dropping calls on config update

This commit is contained in:
Wile E. Coyote 2017-05-05 08:35:42 +00:00
parent 4809540e00
commit e753ffb725

View file

@ -64,7 +64,7 @@ class rhizo_base::openbsc {
file { '/etc/osmocom/osmo-nitb.cfg':
content => template('rhizo_base/osmo-nitb.cfg.erb'),
require => Package['osmocom-nitb'],
notify => Exec['restart-nitb'],
notify => Exec['notify-nitb'],
}
exec { 'hlr_pragma_wal':
@ -74,6 +74,11 @@ class rhizo_base::openbsc {
refreshonly => true,
}
exec { 'notify-nitb':
command => '/bin/echo 1 > /tmp/OSMO-dirty',
refreshonly => true,
}
exec { 'restart-nitb':
command => '/usr/bin/sv restart osmo-nitb',
require => Class['rhizo_base::packages'],