From e753ffb7250ae4b926f8de65bc8082caf3cff8d5 Mon Sep 17 00:00:00 2001 From: "Wile E. Coyote" Date: Fri, 5 May 2017 08:35:42 +0000 Subject: [PATCH] Don't restart nitb dropping calls on config update --- modules/rhizo_base/manifests/openbsc.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/rhizo_base/manifests/openbsc.pp b/modules/rhizo_base/manifests/openbsc.pp index e5388bd..50333f1 100644 --- a/modules/rhizo_base/manifests/openbsc.pp +++ b/modules/rhizo_base/manifests/openbsc.pp @@ -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'],