Update BSC restart-on-update mechanism

This commit is contained in:
Keith Whyte 2023-01-10 23:19:45 +01:00
parent 1cb56e8c13
commit 232985753c
2 changed files with 6 additions and 3 deletions

View file

@ -14,9 +14,10 @@ if [ -a /tmp/FS-dirty -o -a /tmp/OSMO-dirty ]; then
fi fi
if [ -a /tmp/OSMO-dirty ] ; then if [ -a /tmp/OSMO-dirty ] ; then
waitfor0calls waitfor0calls
logc "NITB is tagged for restart due to Puppet update" logc "Osmo BSC is tagged for restart due to Puppet update"
sv restart osmo-nitb systemctl daemon-reload
systemctl restart osmo-bsc
rm /tmp/OSMO-dirty rm /tmp/OSMO-dirty
logc "osmo-nitb restarted" logc "osmo-bsc restarted"
fi fi
fi fi

View file

@ -19,6 +19,7 @@ class rhizo_base::osmocom::buster inherits rhizo_base::osmocom::common {
package { [ 'osmo-bsc', 'osmo-bsc-meas-utils' ]: package { [ 'osmo-bsc', 'osmo-bsc-meas-utils' ]:
ensure => '1.9.0+rhizo3b', ensure => '1.9.0+rhizo3b',
require => Class['rhizo_base::apt'], require => Class['rhizo_base::apt'],
notify => Exec['notify-osmo-restart'],
} }
package { [ 'osmo-msc' ]: package { [ 'osmo-msc' ]:
require => Class['rhizo_base::apt'], require => Class['rhizo_base::apt'],
@ -44,6 +45,7 @@ class rhizo_base::osmocom::stretch inherits rhizo_base::osmocom::common {
package { [ 'osmo-bsc' ]: package { [ 'osmo-bsc' ]:
ensure => '1.9.0+rhizo3s', ensure => '1.9.0+rhizo3s',
require => Class['rhizo_base::apt'], require => Class['rhizo_base::apt'],
notify => Exec['notify-osmo-restart'],
} }
package { [ 'osmo-msc' ]: package { [ 'osmo-msc' ]:
ensure => '1.9.0+rhizo7s', ensure => '1.9.0+rhizo7s',